Thus said Michael Torrie on Thu, 25 Sep 2014 12:58:35 -0600:

> Linux doesn't allow scripts to be setuid.

Sure it does:

$ printf '#!/bin/sh\necho hello world\n' > /tmp/hello
$ chmod 4755 /tmp/hello 
$ ls -l /tmp/hello 
-rwsr-xr-x 1 user user 27 Sep 25 13:29 /tmp/hello

Of  course, it  won't  run  (glossing over  the  fact  that scripts  are
interpreted, not run) as ``user'' because /bin/sh does not have SUID for
user, but it does allow scripts to have the SUID bit set on them.

Andy
--
TAI64 timestamp: 4000000054246df2

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to