From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,dfef95ea2d912748 X-Google-Attributes: gidfee84,public From: Gareth Owen Subject: [Q] SET-USER-ID and SHELL SCRIPTS Date: 1996/03/12 Message-ID: <826628780snz@spclmway.demon.co.uk>#1/1 X-Deja-AN: 142559320 x-mail2news-path: spclmway.demon.co.uk x-nntp-posting-host: spclmway.demon.co.uk organization: Siemens Traffic Controls Limited, UK reply-to: geo@spclmway.demon.co.uk newsgroups: comp.unix.osf.osf1 I am trying to use a shell script with set user id to allow a user root priveledges to carry out a fixed task. The shell script has the following permissions: rwsr-sr-x root dbms The user trying to run the script is in the group dbms. Root is also a member of the group dbms. The script goes something like this: #!/bin/sh id > /tmp/trace #do some root specific stuff here but the output i get in the trace file indicates that the script is not being run with the effective user id of root, but instead as the real user. Is there some security feature of OSF/1 that stops you doing set-user-id to root on shell scripts (like /bin/sh setting the real user id back)? I'm running DEC UNIX v3.2c on and AXP3000/400. Any ideas? Gareth Owen