Ubuntu 7.10 sudoers not working
Hi,
Is there an issue with Ubuntu 7.10? I am having problems with the sudoer. After I put in my username, I am still prompted for my password eventhough I already put in "nopasswd". Any help? |
I did this on one of my machines - works fine as far as I'm concerned.
What did you setup ???. |
How did you edit the sudoers file? Did you use visudo?
|
I added this line
myusername ALL=(ALL)NOPASSWD:ALL Anything I'm missing? I am still prompted for my password each time I needed to access administrative commands. |
Yes but how did you add it? Did you just edit the sudoers file, or use visudo? visudo is Ubuntu's method for editing sudoers. Just run visudo on the command line. man visudo for details.
EDIT: Where in sudoers did you add this line? If there is a line in sudoers that contradicts another, the latter one is used. For example, if you have Ubuntu's default entry (%admin ALL=(ALL) ALL ) after your own it will override it and everything else above it. Set NOPASSWD for yourself at the end of the file and it should work. |
I just used the vi. This works from the previous Ubuntu that I've used 6.06 prior. I will try again later using visudo and let you know. Thanks a lot.
|
Quote:
did you wrote the line like that? i think you missed to press [TAB] key between word (ALL) and NOPASSWD. hope this might help.. |
Quote:
|
Quote:
|
And, of course, using nopasswd will open you system for use by any malicious web site you visit.
Why not just set "root" so you can do a su - when you need to mess around at the system level? Giving a normal user unrestricted access to administrative commands is what's known in the trade a "Really Bad Idea". That is, of course, why Microsoft does it by default. |
Quote:
|
Quote:
|
Quote:
|
All times are GMT -5. The time now is 06:57 AM. |