On Friday 21 November 2003 18:18 pm, K V wrote: <SNIP>
The shell script is owned by root, and I set the permissions with chmod a+xs. It now looks like this:
-rwsr-sr-x 1 root root 56 2003-11-21 12:56 my_dialup_script
I thought the above permissions would cause the 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. Dylan -- Sweet moderation Heart of this nation Desert us not We are between the wars - Billy Bragg