BTW, I also tried writing a little wrapper program in C just in case there was a problem with executing scripting setuid root. This however, didn't help.
David Aikema > The next silly question, how to get something running w/ setuid root. > > I have a little test script which has the following contents: > --- > #!/bin/bash > set | grep UID > --- > > Anyways, the file is owned by root and I chmod'ed it a number of ways > (a+s, 4711, 4755), all of which should by my understanding make it > setuid root. However, if I execute this script as a non-root user the > script will spit out a non-root userid. > > I suppose that my question is the following: is the script actually > executing with an effective user id of root, and if so why is it > spitting out a non-root uid and euid? Is UID only set in a login shell? _______________________________________________ Linux-users mailing list [EMAIL PROTECTED] Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
