From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1020c6,e0a9823ca423b93b X-Google-Attributes: gid1020c6,public X-Google-Thread: 1012a6,e0a9823ca423b93b X-Google-Attributes: gid1012a6,public X-Google-Thread: fee84,e0a9823ca423b93b X-Google-Attributes: gidfee84,public From: Casper.Dik@Holland.Sun.COM (Casper H.S. Dik - Network Security Engineer) Subject: Re: Cannot Set Owner & User-ID bit to Root via script Date: 1996/08/16 Message-ID: <4v21ng$fag@flonk.uk.sun.com>#1/1 X-Deja-AN: 174554336 references: <321333D2.41C6@sms.lmco.com> organization: Sun Microsystems, Netherlands newsgroups: comp.unix.osf.osf1,comp.unix.shell,comp.unix.admin "John G. Bury" writes: >I'm sure this is an age old problem with a simple solution, but I can't >figure it out...I have a need to provide several users with a way to >change the ownership of their executables to root:system and to set the >user-id bit on the executables. >I'm having problems with a Korn shell script I originally wrote on a >Sun Solaris box and ported to Digital UNIX v3.2. Yes, the script does >work on Sun Solaris with path changes to the execuables chmod and chown, >but 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: It is possible that Digital Unix doesn't like set-uid scripts and disabes them by default. It's a good thing, as set-yuid scripts are hard to get right. Your script, e.g., can easily be exploited by chagning $PATH. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Unsolicited e-mail advertisements send to my address will be proofread for a $250 flat fee.