From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,f209f2cc50ddb0f2 X-Google-Attributes: gidfee84,public From: Peter Mayne Subject: Re: dUnix and SUID Date: 1996/05/28 Message-ID: <31AA6394.61A@cao.mts.dec.com>#1/1 X-Deja-AN: 157083503 references: <4nt2ke$liq@tom.amherst.edu> content-type: text/plain; charset=us-ascii organization: Digital Equipment Corporation (Australia) mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.01I (WinNT; I) 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.