--- Dylan
The shell script is owned by root, and I set the permissions with chmod a+xs. It now looks like
On Friday 21 November 2003 18:18 pm, K V wrote: <SNIP> this:
-rwsr-sr-x 1 root root 56
12:56 my_dialup_script
I thought the above permissions would cause the
2003-11-21 script
to be executed as root, and therefore it should have permissions to create or modify the file /etc/resolv.conf. But nevertheless 'touch' complains that it doesn't have permissions for the file.
AIUI the SUID flag sets the file to execute under the user who initiates it. Thus: user KV starts your script, and it runs with KV's permissions/ privelidges. If root starts the same script it will have root's privelidges.
Hmmm... applying this logic in reverse: If the SUID flag is NOT set, and the script is owned by root, but executed by user KV, shouldn't it have root privileges? It doesn't seem it has... Klaus __________________________________ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/