Re: access denied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2006-02-22 at 13:58, azeem ahmad wrote:
> 
> > > > > >
> > > > > >i assume you're running apache 2.x -- are you aware that "user" and
> > > > > >"group" directives aren't supported in the cgi-bin directive set in
> > > >that
> > > > > >version. see:
> > > > > >
> > > > > >
> > > ><http://httpd.apache.org/docs/2.2/mod/mod_suexec.html#suexecusergroup>
> > > > > >
> > > > > >for details.
> > > > > >
> > > > >
> > > > > i changed the dir and files to rwx ie
> > > > > chmod -R 777 cgi-bin
> > > > >
> > > > > even then its saying premature end of script
> > > >
> > > >Can you run the script by hand as the user you think httpd
> > > >will use?
> > > >
> > > >
> > > apache is running as nobody:nobody
> > > the virtual host is running as mine:mine
> > > i m accessing the server remotely as root
> > > i dont have mine and nobody passwords
> > > is there any way to do it?
> >
> >If you are root, you can 'su - user' for any other user
> >without a password.  The user does need a working shell
> >in /etc/passwd that you can use while testing, though.
> >

> apache is running as nobody and it says that
> This account is currently not available
> when i su nobody

That means it doesn't have a valid shell in the
/etc/passwd file entry.

> and as mine i can run the script
> 
> and how can i check my virtual host is running as nobody or mine
> 
> as main apache config is
> user nobody
> group nobody
> 
> and in virtual host
> user mine
> group mine

In a stock fedora configuration, httpd would run as apache,
and I don't think the normal MPM setting allows the
virtual hosts to be different.

-- 
  Les Mikesell
    lesmikesell@xxxxxxxxx



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux