To set a script up as setuid 'news', do the following:
chown news.news yourscript.pl
chmod 4755 yourscript.pl
An alternative (considered a bit more secure) is to use 'sudo'. You can
configure sudo to allow a specific user (i.e. the apache user) to execute
yourscript.pl as 'news'. sudo comes with most linux distros.
--
Mark Thomas [EMAIL PROTECTED]
Sr. Internet Architect User Technology Associates, Inc.
$_=q;KvtuyboopuifeyQQfeemyibdlfee;; y.e.s. ;y+B-x+A-w+s; ;y;y; ;;print;;
> -----Original Message-----
> From: Martin Moss [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 15, 2001 6: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