Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: Runing perl scripts via sendmail

Status
Not open for further replies.

JaybOt

Programmer
Apr 18, 2001
101
GB
Hi all,

I have been trying to run some perl scripts via sendail, and had varing degrees of success in the past (using earlier versions of sendmail) but have never managed to get it working just right.

having recenty upgraded my box (FreeBSD 4.7-RELEASE) i have encountered further problems (suid/guid & insecure scripts) with the new version of sendmail (8.12.6) that comes with the base-install.

Basically i have changed my config so many times in the past, just to get a script to run, that now i am unsure of what i need to do to get it to work with 8.12.6!

I have tried many configs of my own and from the net, but again only managed to get some scripts to run without errors, and again, many changes have been made in haist and then forgotten about, so, i would be very greatefull is anybody could post a definitive list of "things that need to be changed/set to enable sendmail to run perl scripts 'securly'" like file permissions for /bin/sh & scripts, wrappers, and dirs..., sendmail config options.., do's and don'ts in the script..etc that sort of thing.

I am currently using the 'c-wrapper' method to execute scripts, one or two work (w/suid not set), the others fail (with or w/o suig/guid set) with &quot;Insecure dependency in system while running setuid at /usr/scripts/.myScript.pl line 43, <FILE> chunk 8.&quot;. I am realy at a loss and about to start pullng my hair out, so ANY help would be appreciated.

Thanks in advance,
JayBot[sad]





&quot;Always know what you say, but don't always say what you know!&quot;
 
If I remember correctly with the new versions of sendmail you need to create an entry (symlink?) somewhere in a file in /etc, if not sendmail won't run the script.

Hope that helps, sorry I cannot be more specific as I don't have server access right now.

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top