[sudo-users] su except root

dalan at visi.com dalan at visi.com
Fri Oct 6 08:53:16 EDT 2006


In the sudoers file do you have su - <username> or do you just have su -?

Quoting "Penhale, Jeff" <Jeff.Penhale at aig.com>:

>
>
> Default behaviour of su is to assume you want root, unless a username is
> specified.
>
> So "su -", "su" and "su - root" will all do the same thing, whether it's
> sudo'd or not. Sudo eliminates the need to enter the accounts password,
> which is the expected behavoiur when the commands are run as root, either
> directly or through sudo.
>
> Hope this helps
>
>
> -----Original Message-----
> From: sudo-users-bounces at courtesan.com
> [mailto:sudo-users-bounces at courtesan.com] On Behalf Of ANDREW PISTOCCHI
> Sent: Thursday, 5 October 2006 10:45 PM
> To: sudo-users at sudo.ws
> Subject: [sudo-users] su except root
>
> I have users able to su - as another user using sudo but how can I
> exclude them from root?  I want them to be able to sudo su as any user
> except root.  Right now if they type: sudo su and hit <Enter> they get
> the root # prompt.  I don't want this.
>
>
>
> Is there an easy way to allow them to su to all users except root?
>
>
>
> Andy Pistocchi
>
> apistocch at ut.edu
>
> 813-258-7422
>
> The University of Tampa
>
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
> ____________________________________________________________
> sudo-users mailing list <sudo-users at sudo.ws>
> For list information, options, or to unsubscribe, visit:
> http://www.sudo.ws/mailman/listinfo/sudo-users
>






More information about the sudo-users mailing list