LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] suexec/setgid32 error

[ILUG] suexec/setgid32 error

Sean Ryan sryan at iel.ie
Mon Aug 23 11:58:34 IST 2004


Is this a case where the perl binary needs to be setuid?

Sean

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])     
>     = 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:
>
> wwwuser:x:500:apache
>
>  in /etc/group. I've run "chmod g+s awstats.pl". I can't see anything
> wrong, it's just...not working.
>
>
> John




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell