Subject: Re: How to use su
To: None <apriebe@aip.de>
From: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: current-users
Date: 08/28/1999 23:01:24
On Sat, Aug 28, 1999 at 08:10:44PM +0200, apr@spade.apc.aip.de wrote:
> The question is how can i achieve the same as "su - USER -c 'COMMAND'"
> on Solaris with the NetBSD su.
I don't know Solaris, but I guess "su -l USER -c 'COMMAND'" is what you
want, at least if the USER's login shell does understand the "-c" command
line option.
> # su apr /bin/csh w
> \340\231^C\340\377\275: Event not found.
Well, you are doing "[apr's login shell] /bin/csh w"
here, and the login shell is trying to interpret the binary /bin/csh.
--
Dies ist Thilos Unix Signature! Viel Spass damit.