PDA

View Full Version : su asks for password



joea
10-May-2012, 16:20
SLES 10 SP3 - cannot get su to stop asking for password. Have to enter root password.

Below is a snippet of /etc/sudoers, which seems to work on another box. Thanks for any assistance

*****************
# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly
# installed system. When configuring sudo, delete the two
# following lines:
#Defaults targetpw # ask for the password of the target user i.e. root
#ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL
local-user ALL=(ALL) NOPASSWD: ALL
*******************

Having NOPASSWD: in or out does not seem to matter.


joe a.

joea
10-May-2012, 18:57
Never mind. Working as Designed.


SLES 10 SP3 - cannot get su to stop asking for password. Have to enter root password.

Below is a snippet of /etc/sudoers, which seems to work on another box. Thanks for any assistance

*****************
# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly
# installed system. When configuring sudo, delete the two
# following lines:
#Defaults targetpw # ask for the password of the target user i.e. root
#ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!

# Runas alias specification

# User privilege specification
root ALL=(ALL) ALL
local-user ALL=(ALL) NOPASSWD: ALL
*******************

Having NOPASSWD: in or out does not seem to matter.


joe a.

jmroth
11-May-2012, 08:45
Never mind. Working as Designed.

Indeed, if you like to use what you defined in /etc/sudoers you have to use sudo, not su.