From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,e0a9823ca423b93b X-Google-Attributes: gidfee84,public X-Google-Thread: 1020c6,e0a9823ca423b93b X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,e0a9823ca423b93b X-Google-Attributes: gid1012a6,public From: janderso@wavefront.wavefront.com (J. Anderson) Subject: Re: Cannot Set Owner & User-ID bit to Root via script Date: 1996/09/05 Message-ID: <50ng75$rvi@news5.wavefront.com>#1/1 X-Deja-AN: 178736949 references: <321333D2.41C6@sms.lmco.com> followup-to: comp.unix.osf.osf1,comp.unix.shell,comp.unix.admin organization: WaveFront Communications, Inc. newsgroups: comp.unix.osf.osf1,comp.unix.shell,comp.unix.admin John G. Bury (jbury@sms.lmco.com) wrote: : ... the script will not work on Digital UNIX. The script itself is : owned by root:system with the user-id bit set, and does the following: : -rwsr-xr-x 1 root system script_name There's your problem. DEC Unix is _so_ clever, that it won't allow us to do a setuid on a shell script. You have 2 options: 1) write it in C. 2) install sudo. I highly recommend installing sudo--it does exactly what we need, and has much better security than the old setuid bit does. Hope this helps! Jeremy Anderson janderson@globalmt.com patowic@jurai.net http://www.jurai.net/~patowic