Greetings...

I have done something like this before.  You can create a SUID wrapper (C)
for the script.  All necessary instructions are on p360-361 in the Camel
book (rev 2 I think).  Type in the 6 lines of C code, placing the name of
your script in the code where applicable.  There is a program that does
everything for you in your Perl distrib.  Called wrapsuid under the eg
directory.

Alternatively, have you tried suid inn?  If you inn user owns script and
SUID flag is set, the effective UID will be that of inn.  I would think this
would be acceptable to inn and would avoid the security risks associated
with SUID root applications.

HTH  

Jeremy Elston
Sr. Staff Unix System Administrator
Electronic Brokerage Technology
Charles Schwab & Co., Inc.

"Life is the final exam where no one can cheat, because we all have
different problems to solve."

WARNING:  All email sent to this address will be received by the Charles
Schwab Corporate email system and is subject to archival and review by
someone other than the recipient


-----Original Message-----
From: Martin Moss [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:06 AM
To: [EMAIL PROTECTED]; Perl-Unix-Users
Subject: [Perl-unix-users] SetUID?


All,

On a linux box, I need to write a CGI script which will allow me to restart
an INN server.
The problem I have is that with the latest version of INN only the "news"
user can restart inn (most specifically only the news  user can issue the
command 'inndstart')

How can I write a CGI script which will allow me to do this. I've come
across info on setuid but haven't really been able to understand it all. HAs
anybody had any experience in this area?

Regards

Marty

_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to