su command question

Alan Milnes deep64blue at itguru.org.uk
Sat Jul 5 12:51:47 UTC 2008


Smoot Carl-Mitchell wrote:

> 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".

Indeed.  But he wanted to run it automatically without a password prompt 
- as I said he was using his user name as he knew it needed super user 
privileges.

In the end both ways work, both ways run it with root privileges, I 
think my way is cleaner but this is Linux there's always more than one 
option.

Alan






More information about the ubuntu-users mailing list