You are not logged in.
Pages: 1
i just changed my root password and now whenever i type sudo anything it says that have the wrong password. but whenever i su root and use the same password it lets me in. is the sudo password different from the su password?
Offline
Offline
This was one of the things that confused me a little when I started using Arch: sudo uses your user password, not the root password.
With some distros that use the same password for the first user and for root it's not always clear if you're typing the user or root password.
Offline
Oh wow, I didn't know that... My root and user have the same password.
What does Ubuntu do that changes that? I have an Ubuntu box for my sister and the root is my password and her user is her password and I installing things with sudo using my password.
Offline
Ubuntu has root (password) disabled. When you use sudo, you type the user password.
Offline
i had my root and user password set as the same thing. then i realized that that was silly
so i reset them both to different things
also does anyone know of a good guide to setting up the sudoers file? right now i have my regular user ALL = (ALL)ALL and i think its bad to have it set that way
Last edited by murfMan (2009-11-12 04:40:51)
Offline
also does anyone know of a good guide to setting up the sudoers file? right now i have my regular user ALL = (ALL)ALL and i think its bad to have it set that way
AFAIK, that's the only way you can give that particular user sudo privilege. If you add him to wheel group and uncomment
%wheel ALL=(ALL) NOPASSWD: ALL
in sudoers then it won't even ask for a password when you use sudo.:P
Last edited by sHyLoCk (2009-11-12 04:43:29)
Offline
i had my root and user password set as the same thing. then i realized that that was silly
so i reset them both to different things
also does anyone know of a good guide to setting up the sudoers file? right now i have my regular user ALL = (ALL)ALL and i think its bad to have it set that way
That's okay. You can either set "%group ALL=(ALL) ALL" to give a group sudo permissions (with password, and most of the time one choses the wheel group). Or you can set it as you have with a user: "user ALL=(ALL) ALL". If you are the only one on the system that should be able to have sudo access then this sounds like the best way to do it.
Offline
Pages: 1