*BSD News Article 82652


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!sleipnir.iaccess.com.au!news
From: username@iaccess.com.au (Real Name)
Newsgroups: comp.unix.admin,comp.unix.questions,comp.unix.bsd.bsdi.misc
Subject: Setuid Problem
Date: 11 Nov 1996 06:37:26 GMT
Organization: Company Name
Lines: 17
Message-ID: <566hj6$15l@sleipnir.iaccess.com.au>
NNTP-Posting-Host: quest.iaccess.com.au
X-Newsreader: WinVN 0.92.6+
Xref: euryale.cc.adfa.oz.au comp.unix.admin:50127 comp.unix.questions:91021 comp.unix.bsd.bsdi.misc:5246

Hello,

Im having problems getting setuid to work on a bsdi 1.1 system
I have set the owner of a file as root and the "s" bit as
follows:

-rwsrwxr-x  1 root  wheel    1815 Nov  3 22:59 file.pl

If I try to run the program by sending email to an alias 
in the sendmail /etc/aliases file ie. alias: "|/path_to_file/file.pl"
the program will not run as root but as daemon with effective and real id
of "1". 

Can anyone suggest a way to get this working?

Thanks,
Phil