Bug 612414 - "sudo su - " does not work anymore with sudo-1.7.2p1
"sudo su - " does not work anymore with sudo-1.7.2p1
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sudo (Show other bugs)
5.5
All Linux
low Severity high
: rc
: ---
Assigned To: Daniel Kopeček
BaseOS QE Security Team
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-08 03:17 EDT by ilja lunev
Modified: 2010-07-08 08:00 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-07-08 08:00:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
output from rpm -qil sudo and cat /etc/sudoers (5.67 KB, application/octet-stream)
2010-07-08 03:17 EDT, ilja lunev
no flags Details

  None (edit)
Description ilja lunev 2010-07-08 03:17:58 EDT
Created attachment 430257 [details]
output from rpm -qil sudo and cat /etc/sudoers

Description of problem:
 After the latest update of the sudo package to sudo-1.7.2p1  the command sudo su -   does not work anymore.

no matter if a user is config'd in /etc/sudoers with NOPASSWD: (as shown below) or if the passwd is required, the command   sudo su -  just logs out again.
This breaks our process environment, so I am rating the severity high for us.


lxadmin   ALL = (ALL) NOPASSWD: ALL
Comment 1 Daniel Kopeček 2010-07-08 05:14:07 EDT
I have no luck with reproducing this issue (using sudo-1.7.2p1-6). Could you please try whether the following commands work for you?

$ sudo -i
which is similar to "sudo su -"

$ sudo -s
which is similar to "sudo su"

Also, whatever the result of the commands above is, please run the "sudo su -" command via strace under root. Here is the command you can run, it will generate a logfile which I need for a better analysis of this problem:

# strace -u lxadmin -o sudo-strace.log -f sudo su -
Comment 2 ilja lunev 2010-07-08 07:46:35 EDT
Hello Daniel,

thank you for your quick response and your hints.
I have found what caused the problem and it was a side effect with our adapted environment in /etc/profile.d
It is not a bug with sudo and I apologize very much for the inconvenience.
You can please close the call.
Comment 3 Daniel Kopeček 2010-07-08 08:00:46 EDT
(In reply to comment #2)
> Hello Daniel,
> 
> thank you for your quick response and your hints.
> I have found what caused the problem and it was a side effect with our adapted
> environment in /etc/profile.d
> It is not a bug with sudo and I apologize very much for the inconvenience.
> You can please close the call.    

Ok, no problem. Closing as NOTABUG.

Note You need to log in before you can comment on or make changes to this bug.