You are not logged in.
Hey I'm very new to arch linux, and linux in general. Im a little confused about the following:
when I am logged in as my normal user account and input a command via sudo (ie sudo pacman...) it asks for password, but when I give it the password for my root account it won't accept it. However it does accept my password for my normal user account. Im pretty confused about this :S
heres some info (if it helps):
[coleman@BEAST ~]$ id
uid=1000(coleman) gid=1000(coleman) groups=7(lp),10(wheel),91(video),92(audio),93(optical),95(storage),98(power),100(users),1000(coleman)
and my sudoer's file
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
## Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
coleman ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
how did this happen? cheers
Last edited by fuwhereisfu (2009-09-01 03:27:59)
Offline
when I am logged in as my normal user account and input a command via sudo (ie sudo pacman...) it asks for password, but when I give it the password for my root account it won't accept it. However it does accept my password for my normal user account. Im pretty confused about this :S
That's how sudo is supposed to work.
Offline
oops!! haha i feel like a total idiot sorry :\ thought it needed root password
thx for quick reply
Offline
If you want to have it ask for your root password instead, simply use visudo, add/modify the Defaults line and add rootpw:
ex:
Defaults rootpw
Offline
If you want to actually switch to your root account try 'su' instead of 'sudo' (su = switch user; sudo = switch user, do once). su can actually be used for any user, but it does default to root.
Edit: Oops... little slow on the response that time... Eh, having a baby around will distract you sometimes
Last edited by Ghost1227 (2009-09-01 03:32:04)
Offline
This is what the newbie forum is for
Offline