*BSD News Article 10733


Return to BSD News archive

Received: by minnie.vk1xwt.ampr.org with NNTP
	id AA575 ; Fri, 05 Feb 93 04:01:55 EST
Path: sserve!manuel.anu.edu.au!munnari.oz.au!spool.mu.edu!howland.reston.ans.net!usenet.ins.cwru.edu!agate!doc.ic.ac.uk!pipex!demon!wonderland!alice!peter
From: peter@wonderland.org (Peter Galbavy)
Newsgroups: comp.unix.bsd
Subject: Re: su problems.
Date: 2 Feb 1993 18:24:59 GMT
Organization: Wonderland, London, Engalnd
Lines: 23
Distribution: world
Message-ID: <1kme9r$l1@humpty.wonderland.org>
References: <1kgt8iINNqmo@nanny.cradle.titech.ac.jp>
Reply-To: peter@wonderland.org
NNTP-Posting-Host: wonderland.org

In article 1kgt8iINNqmo@nanny.cradle.titech.ac.jp, nakamura@cradle.titech.ac.jp (Kazushi NAKAMURA) writes:
>In article <C1JBwH.E0A@demon.co.uk> peter@alice.wonderland.org writes:
>> On a similar note "su -c command" doesn;t seem to work for me, or am I
>> being stupid ?
>
>  Then,check the setuid bit of /bin/su.
>   v
>-rwsr-xr-x  1 root ...	/bin/su*
>   ^this
>
>  If not,type "chmod u+s /bin/su" as root.

People told me to RTFM and lo and behold, the -c option is not supported. Use:

	echo command | su ...

instead. Thanks all,
---
Peter Galbavy				e-mail: P.Galbavy@wonderland.org
Wonderland

	      "Nothing's forgotten. Nothing's ever forgotten."