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: klaus@wanda.physik.fu-berlin.de (Wolfram Klaus) Subject: Re: dUnix and SUID Date: 1996/05/22 Message-ID: #1/1 X-Deja-AN: 156090796 references: <4nt2ke$liq@tom.amherst.edu> organization: Freie Universitaet Berlin x-access: 16 17 18 newsgroups: comp.unix.osf.osf1 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 ******************* *************************************************************************