su asks for password

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.

Never mind. Working as Designed.

[QUOTE=joea;4502]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.[/QUOTE]

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