Permissions:
/ = rwxr-xr-x root root
/var = rwxr-xr-x root root
/var/www = rwxr-xr-x apache apache
So I don't see how any of the tests are failing....But perhaps I'm being
dense.
On Wed, 2003-02-05 at 16:09, Cameron Simpson wrote:
> On 15:16 05 Feb 2003, Edward Muller <[EMAIL PROTECTED]> wrote:
> | I am trying to get a script to work for a client. I need to run the
> | script with suexec.
> |
> | I get the following error in my suexec.log file...
> |
> |
> | [2003-02-05 16:00:10]: cannot get docroot information (/var/www)
>
> When in doubt, read the source. That message comes from here:
>
> /*
> * Get the current working directory, as well as the proper
> * document root (dependant upon whether or not it is a
> * ~userdir request). Error out if we cannot get either one,
> * or if the current working directory is not in the docroot.
> * Use chdir()s and getcwd()s to avoid problems with symlinked
> * directories. Yuck.
> */
> if (getcwd(cwd, AP_MAXPATH) == NULL) {
> log_err("emerg: cannot get current working directory\n");
> exit(111);
> }
>
> if (userdir) {
> if (((chdir(target_homedir)) != 0) ||
> ((chdir(USERDIR_SUFFIX)) != 0) ||
> ((getcwd(dwd, AP_MAXPATH)) == NULL) ||
> ((chdir(cwd)) != 0)) {
> log_err("emerg: cannot get docroot information (%s)\n",
> target_homedir);
> exit(112);
> }
> }
> else {
> if (((chdir(DOC_ROOT)) != 0) ||
> ((getcwd(dwd, AP_MAXPATH)) == NULL) ||
> ((chdir(cwd)) != 0)) {
> log_err("emerg: cannot get docroot information (%s)\n", DOC_ROOT);
> exit(113);
> }
> }
>
> Since you're talking about /var/www that's the second branch.
> What are the ownerships and permissions on /, /var and /var/www ?
> One of the chdir(/var/www), the getcwd() once there, or the second chdir()
> to what getcwd() returns is failing.
>
> Is /var/www a symlink to somewhere less accessible?
>
> Cheers,
> --
> Cameron Simpson, DoD#743 [EMAIL PROTECTED] http://www.zip.com.au/~cs/
>
> Sir, you're drunk!
> Madam, in the morning I shall be sober, but you will still be ugly.
> - Winston Churchill
--
Edward Muller
Interlix - President
Web Hosting - PC Service & Support
Custom Programming - Network Service & Support
Phone: 417-862-0573
Cell: 417-844-2435
Fax: 417-862-0572
http://www.interlix.com
--
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list