*BSD News Article 51932


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!tank.news.pipex.net!pipex!dispatch.news.demon.net!demon!jraynard.demon.co.uk!jraynard.demon.co.uk!not-for-mail
From: james@jraynard.demon.co.uk (James Raynard)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GNU version of su?
Date: 30 Sep 1995 00:56:24 -0000
Organization: A FreeBSD box
Lines: 19
Message-ID: <44i4jo$2gu@jraynard.demon.co.uk>
References: <44i0tb$sd7@xymox.dsw.com>
NNTP-Posting-Host: localhost.jraynard.demon.co.uk
X-NNTP-Posting-Host: jraynard.demon.co.uk

In article <44i0tb$sd7@xymox.dsw.com>, Pete Kruckenberg <pete@inquo.net> wrote:
>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). 

A patch to do this was posted on the hackers mailing list recently.

>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".

To start INN, the rc.news script that comes with it should be run by root
(this is in the INN documentation, BTW).

Hope this helps
James
-- 
"If English was good enough for Jesus, it's good enough for me!"