From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,1577da2cb05fe0cd X-Google-Attributes: gidfee84,public From: Charles M Richmond Subject: Re: setuid abilities turned off by default Date: 1996/11/19 Message-ID: <32919AE0.2781@iisc.com>#1/1 X-Deja-AN: 197413941 references: <328A4069.30BA@hlthsrc.com> cc: patrick.healy@ul.ie, greenemj@hlthsrc.com content-type: text/plain; charset=iso-2022-jp organization: Integrated International Systems Corp. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 3.0 (X11; I; OSF1 V3.2 alpha) Mark Greene wrote: > > Paddy Healy wrote: > > > > I'm trying to write a plain old perl script so that others can write to a > > file that would normally be protected from writing to by them. However, I > > cannot get the general principle to work on our Alpha running Digital Unix. > > Our sys admin tells me that he hasn't touched this facility so he assumes > > it's turned off by default. Further, he doesn't know how to change this > > behaviour. > > > > Can anyone tell me whather this would be the case or not and if so how I go > > about changing it so that setuid scripts are possible? > > > > Did you ever get an answer to this? We have run into a problem that I > think may be similar. We tried to set the setuid bit on the lprm command > so that users may cancel printjobs of reports they may be printing (due > to printer jams, wrong forms, etc.) that were orignially created by the > operations dept. under a different signon. However, it does not work. DEC > is supposedly looking into it, but I have yet to hear anything. We are > running DU 3.2g on an Alpha 8400. > These are two separate issues. In reverse order- 'lprm' already has the setuid bit turned on. (see below) 'lprm' is designed to not allow the behavior you are seeking as it is counter to the design of a secure system. On the otherhand, Patrick's problem is that "Kernighan & Pike" is very old. The standard now is for scripts to not implement the suid bit , even when it is set. His best bet is to either redo his 'script' in C or to obtain and use the 'sudo' public domain program. -- ************************************************************************* * Charles Richmond Integrated International Systems Corporation * * cmr@iisc.com cmr@koibito.iisc.com cmr@shore.net * * UNIX Internals, I18N, L10N, X, Realtime Imaging, and Custom S/W * * One Longfellow Place Suite 3309 , Boston , Ma. USA 02114-2431 * * (617) 723 7695 (617) 367 3151 FAX (617) 723 6861 * *************************************************************************