On Saturday 31 May 2003 18: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
>
>

man su

NAME
       su - change user ID or become super-user

SYNOPSIS
       su [-] [username [args]]

hence
  su foo -c whoami

-- 
Tom Wesley
Please encrypt personal replies if possible.

Attachment: pgp00000.pgp
Description: signature

Reply via email to