Is this a case where the perl binary needs to be setuid?
On Monday 23 August 2004 10:00, John P. Looney wrote:
> I really hate suexec. It's one of those examples of secure programming
> gone wrong; where it's secure, because people can't usually use it.
>> Anyway, I've a perl CGI script I'm trying to run suexec. However, I can't
> work out why it's failing. When I strace the httpd process, I see:
>> [pid 11702] write(3, "[2004-08-23 09:54:03]: uid: (500/wwwuser) gid:
> (500/500) cmd: awstats.pl\n", 76) = 76 [pid 11702] setgid32(500)
> = -1 EPERM (Operation not permitted) [pid 11702] time()
> = 1093251243
> [pid 11702] write(3, "[2004-08-23 09:54:03]: failed to setgid (500:
> awstats.pl)\n", 58) = 58
>> any ideas how I debug this ? I've put:
>> in /etc/group. I've run "chmod g+s awstats.pl". I can't see anything
> wrong, it's just...not working.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!