How to run program as another user - and permanently dropping current user privileges?

plug.org at 2nerds.com plug.org at 2nerds.com
Wed Mar 14 13:18:02 MDT 2007


On Wed, 14 Mar 2007, Kenneth Burgener wrote:
>   sudo -u myuser myprogram
> 
> This appeared to work very well.  Is this method more secure then the
> 'su' method?

The man pages suggest that, in certain aspects, sudo is likely more secure 
than su.  For details, "man sudo" with particular attention to the 
sections entitled "Security Notes" and "Caveats".

Chris



More information about the PLUG mailing list