LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   sudo (https://www.linuxquestions.org/questions/suse-opensuse-60/sudo-367176/)

kaplan71 09-26-2005 10:15 AM

sudo
 
I'm running SUSE 9.3 and added my user account to the sudo users file via the visudo utility. I noticed that when I run a command using sudo, the password I need to enter is NOT my user account password, but the root password. How can I change this so the former is what is supposed to be entered? Thanks.

debianmike 09-26-2005 10:20 AM

Are you sure?

I use sudo all the time and it is my user account password that I need, not my root account.

Can you post your visudo file?

kaplan71 09-26-2005 10:30 AM

sudo
 
Here it is...in all its glory...

# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# 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
Defaults targetpw # ask for the password of the target user i.e. root
%users ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL
ahk ALL=(ALL) ALL
wolfgang 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

debianmike 09-26-2005 10:39 AM

Defaults targetpw # ask for the password of the target user i.e. root

Well, i think this is your answer.

It asks for the target user (root) when trying to do things as root.

I don't have that entry in mine.

kaplan71 09-26-2005 10:42 AM

sudo
 
Thanks...


All times are GMT -5. The time now is 07:28 AM.