[OT] sudo, why not su?

John Nilsson john at milsson.nu
Mon Aug 8 03:26:33 UTC 2005


On sön, 2005-08-07 at 23:49 +0100, Magnus Therning wrote:
> On Sun, Aug 07, 2005 at 11:06:50PM +0200, John Nilsson wrote:
> >On sön, 2005-08-07 at 20:08 +0100, Magnus Therning wrote:
> >> Now, what I wonder is if there is a way to set up your system such that
> >> the following is possible:
> >> 
> >>  usr1$ su -c cmd
> >>  Password: <pwd1>
> >
> >john at newkid:~$ sudo su - -c whoami
> >Password:
> >root
> >
> >Does that do what you want?
> 
> No!
> 
> I want to run su and enter my own password!

The above did that...

Why are you so hooked up on the su binary? I really don't understand the
difference. As previously stated, you can use alias to make it almost
identical.

/John





More information about the ubuntu-users mailing list