Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Aug 2002 10:14:52 -0400
From:      Rob Ellis <rob@web.ca>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Run a command as another user
Message-ID:  <20020819141452.GB30342@web.ca>
In-Reply-To: <20020819135257.GY389@freepuppy.bellavista.cz>
References:  <002501c24786$6eff4c90$6901a8c0@SURVIVAL> <20020819135257.GY389@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
>     # su anotheruser -c program
> 
>     btw, the man page (at least on two of my STABLE systems) lies: 
>     the -c switch allows one to specify a command, not login class

the -c in 'su username -c command' is an option passed to sh...

    su [-Kflm] [-c class] [login [args]]

it's one of the 'args', a different -c.

- rob

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020819141452.GB30342>