You are not logged in.

#1 2009-11-11 23:25:53

murfMan
Member
Registered: 2009-10-27
Posts: 161

sudo password

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

#2 2009-11-11 23:26:27

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: sudo password

It is the user password.

Offline

#3 2009-11-11 23:39:04

Tomone
Member
Registered: 2009-09-29
Posts: 18

Re: sudo password

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

#4 2009-11-12 00:35:15

Godofgrunts
Member
Registered: 2008-11-14
Posts: 43

Re: sudo password

Oh wow, I didn't know that... My root and user have the same password. tongue

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

#5 2009-11-12 01:02:41

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: sudo password

Ubuntu has root (password) disabled. When you use sudo, you type the user password.

Offline

#6 2009-11-12 04:39:18

murfMan
Member
Registered: 2009-10-27
Posts: 161

Re: sudo password

i had my root and user password set as the same thing.  then i realized that that was silly tongue

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

#7 2009-11-12 04:41:54

sHyLoCk
Member
From: /dev/null
Registered: 2009-06-19
Posts: 1,197

Re: sudo password

murfMan wrote:

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)


~ Regards,
sHy
ArchBang: Yet another Distro for Allan to break.
Blog | GIT | Forum (。◕‿◕。)

Offline

#8 2009-11-12 06:20:41

xd-0
Member
From: Sweden
Registered: 2007-11-02
Posts: 327
Website

Re: sudo password

murfMan wrote:

i had my root and user password set as the same thing.  then i realized that that was silly tongue

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

Board footer

Powered by FluxBB