#1  
Old 18th September 2006, 07:10
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default suEXEC problem

I turned on suEXEC today, and tried the test script, test.pl in the cgi-bin directory. It returned 500 server errors. When I looked in /var/log/httpd/suexec.log I found:

[2006-09-17 21:13:44]: directory is writable by others: (/var/www/web35/cgi-bin)
[2006-09-17 21:13:40]: uid: (10074/richard1) gid: (10038/10038) cmd: test.pl

ll of the ..../web38 dir gave
drwxrwxr-x 2 richard1 web38 4096 Sep 17 21:17 cgi-bin

By chmoding the cgi-bin from 0775 to 0755 the problem is solved, the script runs without error.

The directory is owned by the user and group. I see that suEXEC will not run if the directory is owned by any other, but that is not the case. Surely someone has run into this.

If I change the permissions on the cgi-bin will they stay at 755? Why are they 775 to begin with, does ispConfig have some reason for this?

Thanks

RDB
Reply With Quote
Sponsored Links
  #2  
Old 19th September 2006, 14:35
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by rbartz
If I change the permissions on the cgi-bin will they stay at 755?
Yes, at least they won't be changed by ISPConfig.
Quote:
Originally Posted by rbartz
Why are they 775 to begin with, does ispConfig have some reason for this?
ISPConfig creates the cgi-bin directory with 755 permissions, not 775. Maybe you or some script accidentally changed it?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 19th September 2006, 16:34
rbartz rbartz is offline
Member
 
Join Date: Apr 2006
Posts: 80
Thanks: 9
Thanked 6 Times in 5 Posts
Default

Thanks Falko, I appreciate your help.

I think it was because we created some sites without CGI Scripts checked initially.

I noticed one more problem with suexec. When I try to use pages that use FrontPage Extensions, I get errors as well, complaining that the directories are writeable by others. Is the a way to exclude .exe files from suexec in the httpd.conf?

Richard
Reply With Quote
  #4  
Old 20th September 2006, 17:50
falko falko is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by rbartz
When I try to use pages that use FrontPage Extensions, I get errors as well, complaining that the directories are writeable by others.
What are the exact error messages?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 8th April 2013, 20:45
mrbronz mrbronz is offline
Junior Member
 
Join Date: Feb 2012
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

directory is writable by others: (/var/www/web/cgi-bin)



I know this thread is way old but just for my own sanity in case I need to refer to it again there is also the web directory located at:

Code:
:/var/www/php-fcgi-scripts/web
also needs to have its mod changed to 755
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix problems with smtp linkdeb Server Operation 13 15th March 2014 17:58
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
Postfix+MySQL Problem jasutton Installation/Configuration 1 15th June 2006 16:06
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 18:13.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.