su command question

debian debiani386 at gmail.com
Sun Jul 6 03:38:44 UTC 2008


On Sat, 2008-07-05 at 05:16 -0700, Smoot Carl-Mitchell wrote:
> On Sat, 2008-07-05 at 08:13 +0100, Alan Milnes wrote:
> > Smoot Carl-Mitchell wrote:
> > > On Sat, 2008-07-05 at 00:40 +0100, Alan Milnes wrote:
> > >> Smoot Carl-Mitchell wrote:
> > >>> This is incorrect.  The script will run with the privileges of a user in
> > >>> the "root" group, instead of the user ventrilo. I am not sure what
> > >>> happens with the above, since by default there are no users in the
> > >>> "root" group.  You could do this, however:
> > >> Well I carefully tested it on my system and it works as expected - the 
> > >> script runs as root, doesn't require a password and successfully carries 
> > >> out the command.
> > > 
> > > Exactly my point.  The original poster wanted the script to run as the
> > > user "ventrilo" and *not* as the user "root".
> > 
> > No he didn't - read the post again.  His requirement was to run it 
> > without a password prompt - he was using his user name as he knew it 
> > needed super user privileges.
> 
> Read the original post again.  He specified running the command as the
> user "ventrilo".  If I recall he was doing:
> 
> su ventrilo -c <command>
> 
> This runs the command as the user "ventrilo".
> -- 

oic. i never really used the su commaand that much (i started using
linux around the time people started recommending sudo inplace of su)

from what i read...the su command allows you to run programs as other
users

--cj
> Smoot Carl-Mitchell
> System/Network Architect
> smoot at tic.com
> +1 480 922 7313
> cell: +1 602 421 9005
> 





More information about the ubuntu-users mailing list