Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Oct 1996 10:42:40 +0930 (CST)
From:      Michael Smith <msmith@atrad.adelaide.edu.au>
To:        roberte@mep.ruhr-uni-bochum.de (Robert Eckardt)
Cc:        joerg_wunsch@uriah.heep.sax.de, freebsd-hackers@FreeBSD.org, hasty@rah.star-gate.com
Subject:   Re: su problem
Message-ID:  <199610070112.KAA28805@genesis.atrad.adelaide.edu.au>
In-Reply-To: <199610062115.XAA01101@ghost.mep.ruhr-uni-bochum.de> from "Robert Eckardt" at Oct 6, 96 11:15:15 pm

next in thread | previous in thread | raw e-mail | index | archive | help
Robert Eckardt stands accused of saying:
> 
> > > su -l hasty <shell>
> > > 
> > > it gets a core dump...
> > 
> > Analyze it.  That's what coredumps are for.
> > 
> > Are you sure that it's not actually
> > 
> >   su -l hasty -c "<something>"
> 
> It would be nice if this would work.
> I was searching for that feature since the time I changed
> from SysVr3.2 to FreeBSD. (And it's not in the manpage.)
> 
> Is the missing ability to execute commands like sh BSD-specific
> or a security precaution ?

It's not missing.  We do a bunch of :

if [ -x <script> ]; then
	su -l <user> -c <script> &
fi

in the startup for our radar systems; on some installations there
are as many as 10 or so of these run at startup.  Note that '-c' is
passed to the shell and interpreted there.  This is a FAQ.

> Robert

-- 
]] Mike Smith, Software Engineer        msmith@atrad.adelaide.edu.au    [[
]] Genesis Software                     genesis@atrad.adelaide.edu.au   [[
]] High-speed data acquisition and      (GSM mobile) 0411-222-496       [[
]] realtime instrument control          (ph/fax)  +61-8-267-3039        [[
]] Collector of old Unix hardware.      "Where are your PEZ?" The Tick  [[



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610070112.KAA28805>