--- Alexandr Malusek
Dylan
writes: 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.
It's true but, due to security reasons, this feature is disabled for shell scripts. I think a Perl script can be used instead but I haven't tested it.
Thanks for the feedback. I now tried to do the same
thing with a C++ program instead of a shell script:
#include