Not sure Perl is going to override the systems permissions (nor do I think
you'd really want it to). I think your options are two:

[1] system("su -c inndstart news");  ### or
[2] run the script from the news' crontab



-----Original Message-----
From: Martin Moss [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 6:06 AM
To: [EMAIL PROTECTED]; Perl-Unix-Users
Subject: 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-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to