Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!rutgers!aramis.rutgers.edu!athos.rutgers.edu!lear
From: lear@athos.rutgers.edu.UUCP
Newsgroups: comp.unix.questions
Subject: Interpretter question
Message-ID: <351@athos.rutgers.edu>
Date: Fri, 4-Dec-87 22:36:03 EST
Article-I.D.: athos.351
Posted: Fri Dec  4 22:36:03 1987
Date-Received: Tue, 8-Dec-87 06:41:05 EST
Organization: Rutgers Univ., New Brunswick, N.J.
Lines: 21
Keywords: #!program,nosetuid?

If you run a setuid program as an interprettor, it will not
run setuid (at least on a Sun).  Is this a bug or a feature?

Example:

# pwd
/u4/lear
# cp /bin/sh .
# chown root sh
# chmod 4755 sh

then a executing a file containing:
#!/u4/lear/sh
chown root /u4/lear/.login

You will find that the program will not be setuid.

Any ideas?
-- 
Eliot Lear
[lear@rutgers.edu]