sudo su

Ronald Warner cscrw at mail.dlsu.edu.ph
Wed Sep 20 21:28:56 EDT 2000


I am using sudo1.6.3p5

i added the following to /etc/sudoers

DEFAULTS:ADMIN		rootpw
ADMIN						ALL = /bin/su

but now it accepts neither the root passwd or the user's password.

Any ideas?  Thanks.

> You can use the 'rootpw' Defaults variable to cause sudo to
> prompt for the root password instead of the user's but you'll
> need sudo >= 1.6.3p1 to do it.
> 
>  - todd
> 
> In message <39C8BF2C.24951.1376850 at localhost>
> 	so spake "Ronald Warner" (cscrw):
> 
> > the /etc/sudoers file is below.  what i want to do is to enable admin 
> > user to issue a 'sudo su' but instead of asking for the admin user's 
> > password, i want it to ask for the root's password.
> > 
> > thanks for the help.
> > 
> > # User alias specification
> > User_Alias      HELPDESK = cscmjbs, cscdvt
> > User_Alias      ADMIN = cscrw, cscacu
> > 
> > 
> > # Cmnd alias specification
> > 
> > # User privilege specification
> > Defaults			syslog=auth
> > Defaults                 log_year, logfile=/var/log/sudo.log
> > HELPDESK           ALL = /root/data/, /usr/bin/passwd, !/usr/bin/passwd root
> > ADMIN				ALL = /bin/su
> > root				ALL=(ALL) ALL
> > 
> > 
> > ____________________________________________________________ 
> > sudo-users mailing list <sudo-users at courtesan.com>
> > For list information, options, or to unsubscribe, visit:
> > http://www.courtesan.com/mailman/listinfo/sudo-users
> 
> ____________________________________________________________ 
> sudo-users mailing list <sudo-users at courtesan.com>
> For list information, options, or to unsubscribe, visit:
> http://www.courtesan.com/mailman/listinfo/sudo-users





More information about the sudo-users mailing list