Hello Monks,
I have the following lines in a script
#!/bin/perl $path = "/home/private/commondata/mydir"; $path =~ /(.+)/; $path = $1; print $path; system "mkdir","-p","$path";
I have done "chmod +s myscript" to set the setuid bit, and the script is in /home/private area with the permissions of "private" itself.I want that when any user runs the script, it sohuld run with the permission of "private" and make the directory commondata/mydir.
But when i run the script, i have the folowing error mkdir: "/home/private/commondata/mydir": Permission denied
I dont understand , as if i am correct after setting the setuid bit, the script will have the permission to write in the area with "private" permission!!!!
Thanks for your help in Advance
20040623 Edit by Corion: Added formatting
In reply to permisson prob in suid script by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |