Bug 612414 - "sudo su - " does not work anymore with sudo-1.7.2p1
Summary: "sudo su - " does not work anymore with sudo-1.7.2p1
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: sudo
Version: 5.5
Hardware: All
OS: Linux
low
high
Target Milestone: rc
: ---
Assignee: Daniel Kopeček
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-08 07:17 UTC by ilja lunev
Modified: 2010-07-08 12:00 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2010-07-08 12:00:46 UTC


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

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.


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