Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: setuid
Date: Dec 8 1999 10:57PM

Jason Stajich writes:
 > Has anyone had any trouble running scripts and using DBD::Sybase or
 > Sybase::CTlib with setgid or setuid bit set? I need to
 > permit users to access files through a program w/o being able to normally
 > access the files.  I can alway separate my db routines from my file
 > routines to work around this, but I get the following when I have setuid
 > bit set.  Can't debug very well because perl won't allow debug in setuid
 > mode, but it works fine w/o setuid...
 > (solaris2.7, perl 5.00503))
 > SYBASE = /mysybasedir in this instance 
 >          using sybase11.5
 > install_driver(Sybase) failed: Can't load
 > '/usr/local/lib/perl5/site_perl/5.005/sun4-solaris/auto/DBD/Sybase/'
 > for module DBD::Sybase: /usr/local/bin/perl: fatal: relocation
 > error: file /mysybasedir/lib/ symbol comn_free:
 > referenced

This looks like a problem loading /usr/lib/ instead of

Do you need to set LD_LIBRARY_PATH for your scripts to run?
Alternatively, make a symbolic link in $SYBASE/lib from to and change the Makefile accordingly, rebuild, and maybe
that'll work better.

( is notoriously picky when loading shared objects in setuid
mode, and rightly so...)

Michael Peppler         -||-  Data Migrations Inc.    -||-
Int. Sybase User Group  -||-
Sybase on Linux mailing list: