|
|
sybperl-l Archive
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
on.
The script has to be run with the user setid bit on. The permissions are 4711:
[2] 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:
pm_repo46@hrdev:[1] /home/sybase/killspid.pl
Can't load '/usr/local/perl/5.2.0.2/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/5.2.0.2/solaris/lib/DynaLoader.pm line 140.
at /usr/local/perl/5.2.0.2/solaris/lib/site_perl/Sybase/DBlib.pm line 304
BEGIN failed--compilation aborted at /usr/local/perl/5.2.0.2/solaris/lib/site_perl/Sybase/Sybperl.pm line 43.
BEGIN failed--compilation aborted at /usr/local/perl/5.2.0.2/solaris/lib/site_perl/sybperl.pl line 16.
The PATH, SYBASE, LD_LIBRARY_PATH path variables are the same as the owner of
the script.
If I change the permissions on the script to 0755, I have no problems.
pm_repo46@hrdev:[3] /home/sybase/killspid.pl
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.
TIA
Rakesh
|