From: Gareth Owen <geo@spclmway.demon.co.uk>
Subject: [Q] SET-USER-ID and SHELL SCRIPTS
Date: 1996/03/12 [thread overview]
Message-ID: <826628780snz@spclmway.demon.co.uk> (raw)
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
next reply other threads:[~1996-03-12 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-03-12 5:00 Gareth Owen [this message]
1996-03-11 5:00 ` [Q] SET-USER-ID and SHELL SCRIPTS Dave Parker
1996-03-12 5:00 ` John P. Speno
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox