Red Hat Bugzilla – Bug 128203
Wrong permissions on /etc/sudoers will cause sudo to hang
Last modified: 2007-11-30 17:10:46 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7)
Description of problem:
If the permissions are set wrong on /etc/sudoers to something other
than 0440 will cause sudo to hang for a long time any time it is
invoked. Since it ignores ctrl-c and ctrl-z it ties up the console.
I understand forcing a delay when sudo is use inappropriately but:
1) This is a configuration error not a user trying to break it.
2) This is a really long delay. I thought it had hung completely.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Become root
2. chmod u+w /etc/sudoers
It prints that the permissions are wrong then just hangs and ignores
ctrl-c and ctrl-z
Expected Results: It should print a message and quite after a short
period of time.
Do you have made changes to /etc/sudoers?
Yes, I've got exactly one entry in my sudo file:
daryll ALL=(ALL) ALL
Sudo prints the message saying the permission is wrong right away, but
waits a minute before exiting.
I can not reproduce this problem at all. sudo is coming back without
I recently installed FC3T2 and it still happens for me.
Obviously there's something else involved here. The length of time
sounds like a network timeout.
If you can't reproduce it, I guess it's something peculiar to my machine.
Are you using nis or ldap?
Since there are insufficient details provided in this report for us to
investigate the issue further, and we have not received the feedback we
requested, we will assume the problem was not reproduceable or has been fixed in
a later update for this product.