*BSD News Article 52232


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!in1.uu.net!news.erinet.com!inquo!inquo.net!pete
From: pete@inquo.net (Pete Kruckenberg)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: GNU version of su?
Date: 29 Sep 1995 23:53:15 GMT
Organization: inQuo Internet (801) 530-7160
Lines: 13
Distribution: world
Message-ID: <44i0tb$sd7@xymox.dsw.com>
NNTP-Posting-Host: inquo.net
X-Newsreader: TIN [version 1.2 PL2]

I need to find a version of su that supports passing a command (usually 
-c). The GNU version of su that comes with Linux allows this. The su from 
2.0.5R does not support such a thing (unless I'm missing it). 

Can someone point me to the source for GNU su, or the FreeBSD port of it,
or a way to execute a command from a script as another user. I need it to 
be able to start INN from rc.local, but execute it as user "news".

Thanks.
Pete Kruckenberg
pete@inquo.net