Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!ll-xn!mit-eddie!genrad!decvax!mcnc!ece-csc!mark From: mark@ece-csc.UUCP Newsgroups: comp.unix.questions Subject: Re: setuid bit on shell scripts - works? or not? Message-ID: <3129@ece-csc.UUCP> Date: Fri, 21-Nov-86 19:36:25 EST Article-I.D.: ece-csc.3129 Posted: Fri Nov 21 19:36:25 1986 Date-Received: Sun, 23-Nov-86 03:13:10 EST References: <2668@gitpyr.gatech.EDU> Reply-To: mark@ece-csc.UUCP (Mark Lanzo) Organization: The loony bin Lines: 26 Keywords: shell script setuid In article <2668@gitpyr.gatech.EDU> lindsay@gitpyr.gatech.EDU (LINDSAY H. MORRIS) writes: >If you make a shell script executable, can you then use the setuid bit in the >usual way? Or does setuid only work on executable objects? It works under Ultrix 1.2. I'm not positive, but I *think* that I had some problem with programs run from the script not inheriting the set-uid priviledges, ie, I once had something like: file "test": #!/bin/csh a.out other commands.... Assume "test" was owned by "root" and had set-uid bits on, and "a.out" was owned by something other than root. then, running "test" did not run "a.out" with root's priviledges. I won't swear to this though, since at the time I ran into the problem I found some other way to deal with things and never really did look into the matter thoroughly. (sorry). -- Mark --