*BSD News Article 51937


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!btnet!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GNU su source?
Date: 30 Sep 1995 16:19:41 +0100
Organization: None
Lines: 22
Distribution: world
Message-ID: <44jn6d$ba2@awfulhak.demon.co.uk>
References: <44hmlu$ofi@xymox.dsw.com>
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]

Pete Kruckenberg (pete@inquo.net) wrote:
: I'm curious where I might pick up the GNU version of su, which allows me 
: to specify a shell command to be executed when su executes. The su that 
: comes with FreeBSD 2.0.5R doesn't support this feature, whereas the one 
: that comes with Linux (GNU su) allows a "-c" parameter.

: If there is a way to su and execute a command with the current version of 
: su, please let me know. I need to use this with INN1.4unoff2 to have it 
: execute as user "news" instead of as root.

: Pete Kruckenberg
: pete@inquo.net

You can always set up a .profile for user news.  This profile runs your
script.  You then type
    su -l news


--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....