You are not logged in.

#1 2009-09-01 03:12:06

fuwhereisfu
Member
Registered: 2009-08-27
Posts: 6

[SOLVED] sudo password is normal acct password..

Hey smile 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 smile

Last edited by fuwhereisfu (2009-09-01 03:27:59)

Offline

#2 2009-09-01 03:20:25

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [SOLVED] sudo password is normal acct password..

fuwhereisfu wrote:

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

#3 2009-09-01 03:27:12

fuwhereisfu
Member
Registered: 2009-08-27
Posts: 6

Re: [SOLVED] sudo password is normal acct password..

oops!! haha i feel like a total idiot sorry :\ thought it needed root password

thx for quick reply

Offline

#4 2009-09-01 03:29:49

neddie_seagoon
Member
Registered: 2009-08-23
Posts: 121

Re: [SOLVED] sudo password is normal acct password..

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

http://wiki.archlinux.org/index.php/Sudo

Offline

#5 2009-09-01 03:31:11

Ghost1227
Forum Fellow
From: Omaha, NE, USA
Registered: 2008-04-21
Posts: 1,422
Website

Re: [SOLVED] sudo password is normal acct password..

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 tongue

Last edited by Ghost1227 (2009-09-01 03:32:04)


.:[My Blog] || [My GitHub]:.

Offline

#6 2009-09-01 05:30:24

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] sudo password is normal acct password..

This is what the newbie forum is for wink


neutral

Offline

Board footer

Powered by FluxBB