* dUnix and SUID
@ 1996-05-21 4:00 PAUL D. CHAPIN
1996-05-22 4:00 ` Wolfram Klaus
1996-05-28 4:00 ` Peter Mayne
0 siblings, 2 replies; 4+ messages in thread
From: PAUL D. CHAPIN @ 1996-05-21 4:00 UTC (permalink / raw)
Is there some magic necessary to get dUnix to run a script set as
SUID? It runs, but ignores the fact that it should run as root. The
script is simple enough, but I need to have it write to a common log
that I don't want my users to write directly.
Setting the SUID bit on programs works fine, but this is the first
time I've tried it with a ksh script and it's not happy.
--
Paul Chapin
Unix Systems Manager
Amherst College
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dUnix and SUID
1996-05-21 4:00 dUnix and SUID PAUL D. CHAPIN
@ 1996-05-22 4:00 ` Wolfram Klaus
1996-05-28 4:00 ` Peter Mayne
1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Klaus @ 1996-05-22 4:00 UTC (permalink / raw)
pdchapin@unix.amherst.edu (PAUL D. CHAPIN) writes:
>Is there some magic necessary to get dUnix to run a script set as
>SUID? It runs, but ignores the fact that it should run as root. The
>script is simple enough, but I need to have it write to a common log
>that I don't want my users to write directly.
>Setting the SUID bit on programs works fine, but this is the first
>time I've tried it with a ksh script and it's not happy.
Every decent UNIX ignores the SUID bit on shell scripts. If you really
need SUID-scripts write them in perl (The perl interpreter does not
ignore the SUID bit as the shells do).
>Paul Chapin
>Unix Systems Manager
>Amherst College
--
Wolfram Klaus (klaus@manuel.physik.fu-berlin.de) FU Berlin, FB Physik
*************************************************************************
************ Linux ... the choice of a GNU generation *******************
*************************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dUnix and SUID
1996-05-21 4:00 dUnix and SUID PAUL D. CHAPIN
1996-05-22 4:00 ` Wolfram Klaus
@ 1996-05-28 4:00 ` Peter Mayne
1996-06-12 4:00 ` Stephen Stuart
1 sibling, 1 reply; 4+ messages in thread
From: Peter Mayne @ 1996-05-28 4:00 UTC (permalink / raw)
PAUL D. CHAPIN wrote:
>
> Is there some magic necessary to get dUnix to run a script set as
> SUID? It runs, but ignores the fact that it should run as root. The
> script is simple enough, but I need to have it write to a common log
> that I don't want my users to write directly.
>
> Setting the SUID bit on programs works fine, but this is the first
> time I've tried it with a ksh script and it's not happy.
Digital UNIX will ignore the SUID bit on scripts, for security reasons. Write
the part of your script that needs to write to the common log file as a SUID
program.
--
PJDM
Digital Equipment Corporation (Australia), Canberra, ACT
--------------------------------------------------------------------------------
These are my opinions, and have nothing to do with Digital.
I design Internet Service Providers. It's a job.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dUnix and SUID
1996-05-28 4:00 ` Peter Mayne
@ 1996-06-12 4:00 ` Stephen Stuart
0 siblings, 0 replies; 4+ messages in thread
From: Stephen Stuart @ 1996-06-12 4:00 UTC (permalink / raw)
Peter Mayne (peter.mayne@cao.mts.dec.com) wrote:
: Digital UNIX will ignore the SUID bit on scripts, for security reasons. Write
: the part of your script that needs to write to the common log file as a SUID
: program.
Or, if you really feel confident that your script won't do The Bad
Thing(tm), write a SUID program to exec the script. Not something I'd
do, but different people have different pain threshholds.
Stephen
--
- -----
Stephen Stuart stuart@pa.dec.com
Network Systems Laboratory
Digital Equipment Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-06-12 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-05-21 4:00 dUnix and SUID PAUL D. CHAPIN
1996-05-22 4:00 ` Wolfram Klaus
1996-05-28 4:00 ` Peter Mayne
1996-06-12 4:00 ` Stephen Stuart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox