Up Prev Next
From: Rakesh Dinger <dinger_rakesh at jpmorgan dot com>
Subject: Executing suid scripts
Date: Oct 31 2002 6:48PM
Hi, am running into a problem running a sybperl script with the user setid bit
The script has to be run with the user setid bit on. The permissions are 4711:
 ls -al killspid.pl
-rws--x--x 1 sybase sybase 575 Oct 31 11:54 killspid.pl
When I try to execute this script as another user, I get the following:
Can't load '/usr/local/perl/22.214.171.124/solaris/lib/site_perl/sun4-solaris/auto/Sybase/DBlib/DBlib.so' for module Sybase::DBlib: ld.so.1: /usr/local/bin/perl: fatal: libsybdb.so: open failed: No such file or directory at /usr/local/perl/126.96.36.199/solaris/lib/DynaLoader.pm line 140.
at /usr/local/perl/188.8.131.52/solaris/lib/site_perl/Sybase/DBlib.pm line 304
BEGIN failed--compilation aborted at /usr/local/perl/184.108.40.206/solaris/lib/site_perl/Sybase/Sybperl.pm line 43.
BEGIN failed--compilation aborted at /usr/local/perl/220.127.116.11/solaris/lib/site_perl/sybperl.pl line 16.
The PATH, SYBASE, LD_LIBRARY_PATH path variables are the same as the owner of
If I change the permissions on the script to 0755, I have no problems.
killed spid 43
The script needs to have read permissions revoked from the group/world. Hence,
the reason for setting the permissions as 4711
Any idea what could be wrong? Any help is highyly appreciated.