![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error executing shell command from a perl script | voorkey | Shell Programming and Scripting | 3 | 02-19-2008 03:37 PM |
| Problem executing a script | hemangjani | Shell Programming and Scripting | 4 | 02-12-2008 11:21 AM |
| Problem with executing a script scheduled in crontab | Amardeep | Shell Programming and Scripting | 4 | 07-06-2006 09:51 PM |
| Searching for SETUID and SETGID using PERL file find with lstat | x96riley3 | Shell Programming and Scripting | 1 | 03-31-2006 05:33 PM |
| Executing .profile from perl script | prekida | Shell Programming and Scripting | 1 | 09-29-2005 10:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Problem executing setuid script in perl-5.8.6
Hi,
I have a script (a.pl) that can be run by anyone. The script internally has to read a file and write into few files which are owned by user 'myUser'. Has to read the following file: -rwx------ 1 myuser myuser 4986 Aug 20 18:11 my.file Has to write into following files: -rw-rw-r-- 1 myuser myuser 2187 Aug 21 15:11 a.log -rw-rw-r-- 1 myuser myuser 0 Aug 20 17:53 b.log -rw-rw-r-- 1 myuser myuser 4933 Aug 20 17:57 v.log So, I have made a.pl as setuid script. It used to work fine in perl-5.6.1 In perl-5.8.6, it started to throw the following famous fatal error "Insecure dependency at system ...." where i use system() to execute a java class. system "/usr/local/java/jdk1.5/bin/java", "mypackage.mysubpackage.MyClass"; Could somebody help me out either by suggesting a different approach to accomplish the above task or mentioning a workaround for executing setuid scripts in perl-5.8.6? thanks in advance, Sarma. |
|||
| Google The UNIX and Linux Forums |
| Forum Sponsor | ||
|
|