Red Hat Bugzilla – Bug 612414
"sudo su - " does not work anymore with sudo-1.7.2p1
Last modified: 2010-07-08 08:00:46 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
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 -
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.
(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.