Date: Fri, 06 Nov 1998 06:53:27 -0500 From: Geoffrey Robinson <geoffr@globalserve.net> To: "Christopher J. Michaels" <cjm2@earthling.net> Cc: questions@FreeBSD.ORG Subject: Re: Executing a process as another user Message-ID: <3642E337.CA857323@globalserve.net> References: <01BE08FB.2A8DC460.cjm2@earthling.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Christopher J. Michaels wrote: > > Hey, > Ok this may sound like a stupid question, but it's something I'd like to > know... > Is there a way to exec a process as a specific user, from root, without > su'ing to that user, setting the SUID flag on the executable, or running it > from cron? Yes, root# su username -c "command" will execute command as user username. If you are not running as root it will still work but will prompt you to enter the password for username. -- Geoffrey Robinson geoffr@globalserve.net Oakville, Ontario, Canada. 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?3642E337.CA857323>