Sorry, RTFM... I got the order of the arguments wrong.

Should be:

su foo -c whoami.

Works like a charm.


Dylan



On Sat, 2003-05-31 at 10:00, Dylan Reinhardt wrote:
> I'm trying to start a process from an init script using su -c
> 
> After getting results indicating that I was still running under uid 0, I
> did a quick test:
> 
> # su foo
> $ whoami
> foo
> $ exit
> # su -c whoami foo
> root
>  
> 
> I see the same results using any regular user shell account.
> 
> Am I missing something obvious here?
> 
> TIA,
> 
> Dylan
> 
> 
> --
> [EMAIL PROTECTED] mailing list
> 


--
[EMAIL PROTECTED] mailing list

Reply via email to