Re: [expert] Dumb quick S bit question, and the generally poor state of Linux permissions.

2000-12-17 Thread Mike MacCana
Eric, you can. chown root.system chmod u=rws,g=rx,o=rx As well as making the file owned by root, and turning SetUID on to mean the script runs as its owner, you also need to give other users execute permission on the file. Regarding running shells scripts as root, you could perhaps compile the

Re: [expert] Dumb quick S bit question

2000-12-15 Thread Craig Van Degrift
Eric, I recall that running scripts with suid set is disallowed. A reference is given in the O'Reilly "Learning the Bash Shell" book, 2nd Ed., page 255. "Modern system administration wisdom says that creating suid shell scripts is a very, very bad idea. In fact, some versions of UNIX intenti

[expert] Dumb quick S bit question

2000-12-15 Thread Eric
I've RTFM, and then read it again, I'm missing something OBVIOUS. I'm trying to build a simple script which executes one line, but it needs root permission. So, I built the one line script, did a chown root.system script ; chmod 6755 script. However it acts like the script is running still as t