Bug 612414

Summary: "sudo su - " does not work anymore with sudo-1.7.2p1
Product: Red Hat Enterprise Linux 5 Reporter: ilja lunev <uxadm>
Component: sudoAssignee: Daniel Kopeček <dkopecek>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: low    
Version: 5.5CC: dkopecek
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-07-08 12:00:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
output from rpm -qil sudo and cat /etc/sudoers none

Description ilja lunev 2010-07-08 07:17:58 UTC
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 09:14:07 UTC
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 11:46:35 UTC
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 12:00:46 UTC
(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.