*BSD News Article 54066


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.uwa.edu.au!DIALix!melbourne.DIALix.oz.au!seeware!news
From: mark@putte.seeware.DIALix.oz.au (Mark Hannon)
Subject: Re: SU -c switch
Sender: news@seeware.DIALix.oz.au (Charlie Root)
Nntp-Posting-Host: localhost
Organization: SeeWare Software
Message-ID: <DHo5CM.5Dn@seeware.DIALix.oz.au>
References: <47fh68$8d@falstaf.demon.co.uk>
Date: Tue, 7 Nov 1995 10:33:58 GMT
Lines: 30

In article <47fh68$8d@falstaf.demon.co.uk>,
	robin@falstaf.demon.co.uk (Robin Birch) writes:
>Dear All,
>Many systems, my PDP-11 running 2bsd amongst others, allow me to do something
>like su news -c "some command string".  This then allows me to execute the
>command string as news.  
>
>I am running FreeBSD 2.0 and this doesn't appear to do this.  If I enter
>such a string all I get is the sh prompt and I hae to mannually enter
>the command.
>
>What am I doing wrong?.  Or is there some stuff I have to set up before I
>can do this?.
>

Try this:

	putte:~> echo id | su news
	Password:
	uid=8(news) gid=8(news) groups=8(news)

/mark

-- 
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
| Mark Hannon,| FreeBSD - Free Unix for your PC| mark@seeware.DIALix.oz.au|
| Melbourne,  | PGP key available by fingering | epamha@epa.ericsson.se   |
| Australia   | seeware@melbourne.DIALix.oz.au |                          |
+-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+