[EMAIL PROTECTED] Suexec - VhostAlias. Is it possible?

2008-08-27 Thread WhoAmI
Hi Guys, I have a little problem: my server is running whit mod_vhost_alias and mod_fastcgi (i only use it whit php5-cgi). I Use it whit VirtualScriptAlias directive so i haven't to restart the webserver every time i add an user (of course i haven't any vhost). For security reasons i MUST use

[EMAIL PROTECTED] suExec and UserDir module

2008-08-04 Thread Juan Asensio Sánchez
Hi everybody I have just configured a LDAP based Samba Server. Now i want the users to publish their websites with the module UserDir. The problem is that user's directories are chmoded 700 (and I want to be 700), so Apache user (www-data) can not access the files of the user. I have thought to

Re: [EMAIL PROTECTED] suExec vhost problem

2008-07-09 Thread Nick Wiltshire
On July 8, 2008 06:30:01 pm Res wrote: On Tue, 8 Jul 2008, Nick Wiltshire wrote: Hi list, I'm trying to set up suExec with virtual hosts, and I am either going about this all wrong, or I have found a bug. Given the following vhost: VirtualHost *:80 SuexecUserGroup

[EMAIL PROTECTED] suExec vhost problem

2008-07-08 Thread Nick Wiltshire
Hi list, I'm trying to set up suExec with virtual hosts, and I am either going about this all wrong, or I have found a bug. Given the following vhost: VirtualHost *:80 SuexecUserGroup example.org example.org ScriptAlias /php5 ~/cgi-bin/php Action php5-cgi /php5

[EMAIL PROTECTED] Suexec and fastcgi

2008-01-09 Thread Martijn de Munnik
Hi, I'm trying to configure a webserver using virtualmin with suexec and fastcgi. I used the following setting s and get the error as seen in error_log. Any ideas? The OS is Solaris 10. in httpd.conf: LoadModule fastcgi_module libexec/mod_fastcgi.so LoadModule suexec_module

[EMAIL PROTECTED] suexec + chroot + fascgi php = no input file specified.

2007-07-31 Thread Jos Ewert
Hi, I want to set up a system like this : /var/www/user/htdocs/abc.com /var/www/user/htdocs/def.com ... To serve php ( and maybe later other systems ) I chose fastcgi and suexec that I modified to chroot, for flexibility and security. I chroot to /var/www/user . For each user I want a minimum

Re: [EMAIL PROTECTED] suexec + chroot + fascgi php = no input file specified.

2007-07-31 Thread Jaqui Greenlees
--- Jos Ewert [EMAIL PROTECTED] wrote: Hi, I want to set up a system like this : /var/www/user/htdocs/abc.com /var/www/user/htdocs/def.com ... try with /var/www/htdocs/user/ - trailing slash if putting virtual hosts under this folder, since each vh need to be given a unique document

Re: [EMAIL PROTECTED] suexec + chroot + fascgi php = no input file specified.

2007-07-31 Thread Jos Ewert
Am 31.07.2007, 14:20 Uhr, schrieb Jaqui Greenlees [EMAIL PROTECTED]: --- Jos Ewert [EMAIL PROTECTED] wrote: Hi, I want to set up a system like this : /var/www/user/htdocs/abc.com /var/www/user/htdocs/def.com ... try with /var/www/htdocs/user/ - trailing slash if putting virtual hosts

Re: [EMAIL PROTECTED] SuExec issues

2007-02-14 Thread Kövesdán Gábor
Joshua Slive schrieb: On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: Joshua Slive schrieb: On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: However, if I set modes for the files to 600, i get 403. I don't see why this is happening, since the pages should be read/run as foo. Do you

Re: [EMAIL PROTECTED] SuExec issues

2007-02-14 Thread Joshua Slive
On 2/14/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: Thanks for the detailed explanation. I'm running php as CGI now, but I've run into a strange issue. Firstly, I got this message: [2007-02-12 20:37:45]: cannot get docroot information (/usr/local/www/data) I wondered why I get this, since the

[EMAIL PROTECTED] SuExec issues

2007-02-07 Thread Kövesdán Gábor
Hello list, I'm setting up a webserver with php. Here, security is very important, thus I want to use SuExec for running each website as a separate user. I've set up a VirtualHost as: VirtualHost *:80 SuexecUserGroup foo foo ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/www.foo.hu

Re: [EMAIL PROTECTED] SuExec issues

2007-02-07 Thread Joshua Slive
On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: However, if I set modes for the files to 600, i get 403. I don't see why this is happening, since the pages should be read/run as foo. Do you understand that suexec affects only CGI scripts and not normal requests or requests served by apache

Re: [EMAIL PROTECTED] SuExec issues

2007-02-07 Thread Kövesdán Gábor
Joshua Slive schrieb: On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: However, if I set modes for the files to 600, i get 403. I don't see why this is happening, since the pages should be read/run as foo. Do you understand that suexec affects only CGI scripts and not normal requests or

Re: [EMAIL PROTECTED] SuExec issues

2007-02-07 Thread Joshua Slive
On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: Joshua Slive schrieb: On 2/7/07, Kövesdán Gábor [EMAIL PROTECTED] wrote: However, if I set modes for the files to 600, i get 403. I don't see why this is happening, since the pages should be read/run as foo. Do you understand that suexec

RE: [EMAIL PROTECTED] suEXEC and RewriteRule

2007-02-01 Thread Chirouze Olivier
with it to change the page title. Olivier Olivier CHIROUZE I0 Infrastructure Volvo Information Technology -Original Message- From: Florian Effenberger [mailto:[EMAIL PROTECTED] Sent: 31 January 2007 17:06 To: users@httpd.apache.org Subject: Re: [EMAIL PROTECTED] suEXEC and RewriteRule

Re: [EMAIL PROTECTED] suEXEC and RewriteRule

2007-02-01 Thread Florian Effenberger
Hi Olivier, Hmm... mod_rewrite only rewrites the URL... It doens't change the content. I guess you use the dynamically generated listing? So you should probably play with the directive that allows you to list directories. I don't remember which one it is and don't use it myself. But I guess you

RE: [EMAIL PROTECTED] suEXEC and RewriteRule

2007-01-31 Thread Chirouze Olivier
Subject: [EMAIL PROTECTED] suEXEC and RewriteRule Hello, I have some virtual sites where UserDirs like /~michael should be available under a different name, like /projects/design. These directories contain CGI scripts run by suEXEC, which results in 500 Internal Server error when

Re: [EMAIL PROTECTED] suEXEC and RewriteRule

2007-01-31 Thread Florian Effenberger
Hi Olivier, I'm not exactly sure RewriteRule accepts all sorts of regex, such as ?. But if so, I guess the following should do: RewriteRule ^/projects/design/(.?) http://www.mydoma.in/~michael/$1 [P] And below: RewriteRule ^/projects/design/ - [F] Or even: RewriteRule .* - [F] That

[EMAIL PROTECTED] suEXEC and RewriteRule

2007-01-30 Thread Florian Effenberger
Hello, I have some virtual sites where UserDirs like /~michael should be available under a different name, like /projects/design. These directories contain CGI scripts run by suEXEC, which results in 500 Internal Server error when NOT being called as /~michael. Right now, I do RewriteRule

[EMAIL PROTECTED] suEXEC verbosity

2006-10-03 Thread Fabio Corazza
Hi everyone, we are using a CGI under Apache that is spawned under a different user through mod_suexec. Everything is fine except the verbosity of the suEXEC mechanism, which writes a notice for every request that is passed to the CGI: [2006-10-03 11:52:11]: uid: (501/tmctaux) gid: (501/501)

Re: [EMAIL PROTECTED] suEXEC verbosity

2006-10-03 Thread Joshua Slive
On 10/3/06, Fabio Corazza [EMAIL PROTECTED] wrote: What it concerns me is: if I delete the logging of the transactions, will suEXEC be able to open the log file if any other error happens? Sorry, but I'm not going to give you advice on hacking suexec. The consequences if I made a mistake or

Re: [EMAIL PROTECTED] suEXEC verbosity

2006-10-03 Thread Fabio Corazza
Joshua Slive wrote: On 10/3/06, Fabio Corazza [EMAIL PROTECTED] wrote: What it concerns me is: if I delete the logging of the transactions, will suEXEC be able to open the log file if any other error happens? Sorry, but I'm not going to give you advice on hacking suexec. The consequences

Re: [EMAIL PROTECTED] suEXEC verbosity

2006-10-03 Thread Fabio Corazza
Fabio Corazza wrote: [snip] Everything is fine except the verbosity of the suEXEC mechanism, which writes a notice for every request that is passed to the CGI: [snip] With the help of a colleague we wrote a patch to get rid of excessive verbosity of suEXEC, for whom they intend to run it on

Re: [EMAIL PROTECTED] SuExec

2006-06-19 Thread Joshua Slive
On 6/18/06, Daniel Fernandez [EMAIL PROTECTED] wrote: Hi. I need a patch for the suexec to chroot every virtualsite. Have any patch to it? You've asked the same question three times, but it seems you haven't spent much time with google: http://www.apachesecurity.net/tools/index.html I have

Re: [EMAIL PROTECTED] SuExec

2006-06-19 Thread Daniel Fernandez
I am with google during one week, but this patch don´t work with virtualhost, all the chroot paths are for chroot the apache, and i need chroot for every virtualhost. Thanks. Daniel. 2006/6/19, Joshua Slive [EMAIL PROTECTED]: On 6/18/06, Daniel Fernandez [EMAIL PROTECTED] wrote: Hi. I need

Re: [EMAIL PROTECTED] SuExec

2006-06-19 Thread Joshua Slive
On 6/19/06, Daniel Fernandez [EMAIL PROTECTED] wrote: I am with google during one week, but this patch don´t work with virtualhost, all the chroot paths are for chroot the apache, and i need chroot for every virtualhost. Well, I know nothing about the issue. But if you're going to ask

[EMAIL PROTECTED] SuExec

2006-06-18 Thread Daniel Fernandez
Hi. I need a patch for the suexec to chroot every virtualsite. Have any patch to it? Daniel - The official User-To-User support forum of the Apache HTTP Server Project. See URL:http://httpd.apache.org/userslist.html for more

[EMAIL PROTECTED] suExec problem

2006-05-12 Thread Laszlo Nagy
Hello, I have a SuSe 9.3 server, with apache version 2.0.53 and suexec configured. It was working for months. One day, it stopped working for ALL virtual hosts. I might have misconfigured something, but I'm not sure what is the problem. When I start up apache, I see this in the error_log:

[EMAIL PROTECTED] Suexec Issue

2006-04-26 Thread Osama Dwairi
I need to use Suexec with apache and fastcgi, so I can got better performance but the article I followed are all missing something, any one know how?I am running apache 2 on Fedora 5Thanks in advanced. Osama.

[EMAIL PROTECTED] suexec

2006-02-21 Thread azeem ahmad
hi list i m wondering that my cgi scripts are being access denied, i thin kits matter of suexec but i m not finding any help about how to use it i placed SuexecUserGroup mine mine but when restarting it says configuration broken, ignoring restart is it a wrong placement of directive Regards

Re: [EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-25 Thread Mario Ohnewald
Hi, On Tue, 2006-01-24 at 13:22 -0500, Joshua Slive wrote: On 1/24/06, Mario Ohnewald [EMAIL PROTECTED] wrote: When i tried to write a file to my homedir with php´s fwrite i got permission denied. So i guess its like you already told me. Php is not using the suexec yet. What

Re: [EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-25 Thread Joshua Slive
On 1/25/06, Mario Ohnewald [EMAIL PROTECTED] wrote: The error i get now is the following: --- [error] [client 192.168.1.201] Premature end of script headers: test.php [error] [client 192.168.1.201] Error in suphp.c on line 256:

[EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-24 Thread Mario Ohnewald
Hello List. I am running apache2 (2.0.54-5) on Sarge. Where can i go from here? How could i debug this problem a little further? Error: - cat /var/log/apache2/suexec.log [2006-01-24 16:55:55]: too few arguments Configs and Logs:

Re: [EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-24 Thread Joshua Slive
On 1/24/06, Mario Ohnewald [EMAIL PROTECTED] wrote: Hello List. I am running apache2 (2.0.54-5) on Sarge. Where can i go from here? How could i debug this problem a little further? What's the problem exactly? You haven't told us exactly what you are trying to do and how it is failing.

Re: [EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-24 Thread Mario Ohnewald
Hello Joshua, On Tue, 2006-01-24 at 11:16 -0500, Joshua Slive wrote: On 1/24/06, Mario Ohnewald [EMAIL PROTECTED] wrote: Hello List. I am running apache2 (2.0.54-5) on Sarge. Where can i go from here? How could i debug this problem a little further? What's the problem exactly?

Re: [EMAIL PROTECTED] suexec and apache 2.0.54-5 on sarge

2006-01-24 Thread Joshua Slive
On 1/24/06, Mario Ohnewald [EMAIL PROTECTED] wrote: When i tried to write a file to my homedir with php´s fwrite i got permission denied. So i guess its like you already told me. Php is not using the suexec yet. What documentation will i need next? (i found a few, but they are mostly buggy,

Re: [EMAIL PROTECTED] suexec

2005-12-29 Thread Joshua Slive
On 12/28/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hey guys. Trying to get this thing to work. But am getting this error. [2005-12-28 13:36:30]: uid: (514/dspam) gid: (514/514) cmd: dspam.cgi [2005-12-28 13:36:30]: command not in docroot (/web/spam/html/dspam.cgi) the users home is

[EMAIL PROTECTED] suexec

2005-12-28 Thread rob
Hey guys. Trying to get this thing to work. But am getting this error. [2005-12-28 13:36:30]: uid: (514/dspam) gid: (514/514) cmd: dspam.cgi [2005-12-28 13:36:30]: command not in docroot (/web/spam/html/dspam.cgi) the users home is /web/spam/html the doc root (default host) is /web the

Re: [EMAIL PROTECTED] suexec

2005-12-28 Thread httpd2
Rob - What is the full definition for your virtual host container please? Keith On Wed, 28 Dec 2005 [EMAIL PROTECTED] wrote: To: users@httpd.apache.org From: [EMAIL PROTECTED] Subject: [EMAIL PROTECTED] suexec Hey guys. Trying to get this thing to work. But am getting

[EMAIL PROTECTED] suexec

2005-12-02 Thread Adam Hewitt
Hi All, I have made progress with my previous suexec + mod_ldap_user + multiple vhosts issue, however I am now getting a strange problem where suexec is being called when I try accessing a cgi in one vhost but not another: [pid 23260] read(43, [EMAIL PROTECTED] Available\0/u/a/[EMAIL

RE: [EMAIL PROTECTED] suexec + mod_ldap_user + multiple realms

2005-12-01 Thread Adam Hewitt
not doing something stupid, and if there really is an issue then I will lodge a bug report. Adam. -Original Message- From: Adam Hewitt Sent: Wednesday, 30 November 2005 2:03 PM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] suexec + mod_ldap_user + multiple realms Hi All, I have a setup

Re: [EMAIL PROTECTED] suexec + mod_ldap_user + multiple realms

2005-12-01 Thread Joshua Slive
On 12/1/05, Adam Hewitt [EMAIL PROTECTED] wrote: As you can see here, Apache finds the correct home directory after looking it up from LDAP (/u/0/3/1572830/) and allows the 'filedel.cgi' script to be run. It then tries to lookup the details from nscd, but it only passes sword instead of

[EMAIL PROTECTED] SuExec and symlinks, again

2005-11-29 Thread Oscar Haeger
Hi. I have another question about SuExec and symlinks. Now I've found out that linking to executables via symlinks violates SuExecs security model. However, suexec only checks for things inside docroot doesn't it? If a symlink is present outside of that it wouldn't violate the security

[EMAIL PROTECTED] suexec + mod_ldap_user + multiple realms

2005-11-29 Thread Adam Hewitt
Hi All, I have a setup where I have roughly 14 different realms (aquired ISP's) and users in each realm are listed in LDAP using [EMAIL PROTECTED] straight forward. I have configured apache2 with mod_ldap_userdir such that if [EMAIL PROTECTED] accesses http://homepages.domain1.com/~bill that the

Re: [EMAIL PROTECTED] suexec and shared binaries

2005-11-12 Thread Joshua Slive
On 11/11/05, Sven Karlsson [EMAIL PROTECTED] wrote: Hello, I'm setting up a hosting site with virtual domains, and to increase security I intend to run suexec'd php and cgi's. I'd also like to keep redundancy to a minimum; i.e. only one copy of php in /usr/lib/cgi-bin . If I need to

[EMAIL PROTECTED] suexec and shared binaries

2005-11-11 Thread Sven Karlsson
Hello,I'm setting up a hosting site with virtual domains, and to increase security I intend to run suexec'd php and cgi's.I'd also like to keep redundancy to a minimum; i.e. only one copy of php in /usr/lib/cgi-bin . If I need to upgrade php, I'd like to do it in one place, not messing with users

Re: [EMAIL PROTECTED] suEXEC question

2005-10-26 Thread Gordon Thagard
I see your point regarding sudo. This opens up a can of security-related worms. Could anyone suggest a safe, reliable way to authenticate users via Apache and then execute code as the user to do things like: * change passwords * turn off/on vacation Regards, Joshua Slive wrote: On

Re: [EMAIL PROTECTED] suEXEC question

2005-10-26 Thread Joshua Slive
On 10/26/05, Gordon Thagard [EMAIL PROTECTED] wrote: I see your point regarding sudo. This opens up a can of security-related worms. Could anyone suggest a safe, reliable way to authenticate users via Apache and then execute code as the user to do things like: * change passwords * turn

[EMAIL PROTECTED] suEXEC question

2005-10-25 Thread Gordon Thagard
Hello All, I'm unclear as to how one part of suEXEC works. Specifically, I'm refering to the documentation located at http://httpd.apache.org/docs/1.3/suexec.html#usage: *User directories:* The suEXEC wrapper can also be used to execute CGI programs as the user to which the request is being

Re: [EMAIL PROTECTED] suEXEC question

2005-10-25 Thread Joshua Slive
On 10/25/05, Gordon Thagard [EMAIL PROTECTED] wrote: After reading the security checks list it seems somewhat clear that only the apache (perhaps the nobody user, as that's how I've set mine) user can execute cgi or PHP code. I want users to be able to authenticate and then be able to: a.

Re: [EMAIL PROTECTED] SuExec and symlinks

2005-09-19 Thread Joshua Slive
On 9/19/05, Oscar Haeger [EMAIL PROTECTED] wrote: What I'd like to know is if SuExec somehow prevents me from running scripts via symlinks. I have a webserver with SuExec installed and I'd like to be able to run scripts that resides in other peoples cgi-bin directories. I've tested this

Re: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread Joshua Slive
On 7/20/05, dAniel hAhler [EMAIL PROTECTED] wrote: Hi, I've installed mod_chroot for Apache (2.0.53-Ubuntu), but have now problems with suexec complaining: [2005-07-20 06:28:13]: uid: (1003/x) gid: (1003/1003) cmd: php4-fcgi-starter [2005-07-20 06:28:13]: command not in docroot

Re: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread dAniel hAhler
Joshua Slive wrote: I've installed mod_chroot for Apache (2.0.53-Ubuntu), but have now problems with suexec complaining: [2005-07-20 06:28:13]: uid: (1003/x) gid: (1003/1003) cmd: php4-fcgi-starter [2005-07-20 06:28:13]: command not in docroot

RE: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread Gold, Samuel (Contractor)
: dAniel hAhler [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 12:58 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot Hi, I've installed mod_chroot for Apache (2.0.53-Ubuntu), but have now problems with suexec complaining: [2005-07

Re: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread Joshua Slive
On 7/20/05, dAniel hAhler [EMAIL PROTECTED] wrote: Joshua Slive wrote: I've installed mod_chroot for Apache (2.0.53-Ubuntu), but have now problems with suexec complaining: [2005-07-20 06:28:13]: uid: (1003/x) gid: (1003/1003) cmd: php4-fcgi-starter [2005-07-20

Re: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread dAniel hAhler
. -Original Message- From: dAniel hAhler [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 20, 2005 12:58 AM To: users@httpd.apache.org Subject: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot Hi, I've installed mod_chroot for Apache (2.0.53-Ubuntu), but have now

Re: [EMAIL PROTECTED] suexec with mod_chroot: command not in docroot

2005-07-20 Thread dAniel hAhler
Hi, Thanks for all your help, it was a very stupid mistake of myself.. /fcgi-scripts/.. still was not in the docroot, because the suexec2 in the chroot was still the old one... :/ I thought I had hardlinked it there, but it seems to have been copied only. Sorry.