Mason Error

Mason Error

am 18.12.2008 01:24:15 von db

I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION = 1.69.
Http server can be started without error, but web page will show
following error:

~~~~~~~~~~~~~~
mkdir /etc/httpd/mason/obj/: Permission denied at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm line
107
~~~~~~~~~~~~~~

On the RedHat server, /etc/httpd/mason is set with 777 permission and
owned by 'apache:apache', which is how httpd.conf set for user and
group.

How can I stop this Permssion error?

Thanks,
John Reiman

Re: Mason Error

am 18.12.2008 04:27:02 von fjmolinabravo

------=_Part_20969_2208495.1229570822921
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

2008/12/17 db

> I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION = 1.69.
> Http server can be started without error, but web page will show
> following error:
>
> ~~~~~~~~~~~~~~
> mkdir /etc/httpd/mason/obj/: Permission denied at
> /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm line
> 107
> ~~~~~~~~~~~~~~
>
> On the RedHat server, /etc/httpd/mason is set with 777 permission and
> owned by 'apache:apache', which is how httpd.conf set for user and
> group.


try with nobody...

>
>
> How can I stop this Permssion error?
>
> Thanks,
> John Reiman
>

------=_Part_20969_2208495.1229570822921
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline




2008/12/17 db <>

I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION = 1.69.
Http server can be started without error, but web page will show

following error:

~~~~~~~~~~~~~~
mkdir /etc/httpd/mason/obj/: Permission denied at
/usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm line
107
~~~~~~~~~~~~~~

On the RedHat server, /etc/httpd/mason is set with 777 permission and

owned by 'apache:apache', which is how httpd.conf set for user and
group.

 

try with nobody...



How can I stop this Permssion error?

Thanks,
John Reiman




------=_Part_20969_2208495.1229570822921--

Re: Mason Error

am 18.12.2008 15:33:51 von db

replace ownership of /etc/httpd/mason to 'nobody:nobody', and/or
change User/Group settup to 'nobody' in httpd.conf DIDN'T solve the
issue. web page returns same error.

On 12/17/08, Felipe de Jes=FAs Molina Bravo wrote=
:
>
>
> 2008/12/17 db
> > I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION =3D 1.69.
> > Http server can be started without error, but web page will show
> > following error:
> >
> > ~~~~~~~~~~~~~~
> > mkdir /etc/httpd/mason/obj/: Permission denied at
> >
> /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm
> line
> > 107
> > ~~~~~~~~~~~~~~
> >
> > On the RedHat server, /etc/httpd/mason is set with 777 permission and
> > owned by 'apache:apache', which is how httpd.conf set for user and
> > group.
>
> try with nobody...
> >
> >
> > How can I stop this Permssion error?
> >
> > Thanks,
> > John Reiman
> >
>
>

Re: Mason Error

am 18.12.2008 23:59:48 von fjmolinabravo

------=_Part_37856_28563690.1229641188274
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

2008/12/18 db

> replace ownership of /etc/httpd/mason to 'nobody:nobody', and/or
> change User/Group settup to 'nobody' in httpd.conf DIDN'T solve the
> issue. web page returns same error.
>

My configuration is:
- for directory of mason:
drwxr-xr-x 4 nobody nogroup 96 oct 22 10:29 mason
- in my httpd.conf:
User nobody
Group #-1

- in /etc/passwd
nobody:x:65534:65534:nobody:/:/bin/false
- in /etc/group
nogroup:x:65533:




>
> On 12/17/08, Felipe de Jes=FAs Molina Bravo wro=
te:
> >
> >
> > 2008/12/17 db
> > > I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION =3D 1.69=
..
> > > Http server can be started without error, but web page will show
> > > following error:
> > >
> > > ~~~~~~~~~~~~~~
> > > mkdir /etc/httpd/mason/obj/: Permission denied at
> > >
> > /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm
> > line
> > > 107
> > > ~~~~~~~~~~~~~~
> > >
> > > On the RedHat server, /etc/httpd/mason is set with 777 permission and
> > > owned by 'apache:apache', which is how httpd.conf set for user and
> > > group.
> >
> > try with nobody...
> > >
> > >
> > > How can I stop this Permssion error?
> > >
> > > Thanks,
> > > John Reiman
> > >
> >
> >
>

------=_Part_37856_28563690.1229641188274
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline



2008/12/18 db < ref=3D"mailto:reiman2006@gmail.com">reiman2006@gmail.com>
=
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
replace ownership of /etc/httpd/mason to 'nobody:nobody', and/or >
change User/Group settup to 'nobody' in httpd.conf DIDN'T solve=
the

issue.  web page returns same error.

My confi=
guration is:
- for directory of mason:
     =
      drwxr-xr-x  4 nobody nogroup  =
; 96 oct 22 10:29 mason    
- in my httpd.conf:
style=3D"margin-left: 40px;">
User nobody
Group #-1

- in /etc/passwd
   =
;       nobody:x:65534:65534:nobody:/:/bin/fa=
lse
- in /etc/group
        &=
nbsp; nogroup:x:65533:



e" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt =
0.8ex; padding-left: 1ex;">




On 12/17/08, Felipe de Jes=FAs Molina Bravo < ravo@gmail.com">fjmolinabravo@gmail.com> wrote:

>

>

> 2008/12/17 db <reiman2006@g=
mail.com
>

> > I have Apache/2.0.52, and HTML::Mason::ApacheHandler VERSION =3D =
1.69.

> > Http server can be started without error, but web page will show<=
br>
> > following error:

> >

> > ~~~~~~~~~~~~~~

> > mkdir /etc/httpd/mason/obj/: Permission denied at

> >

> /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm

> line

> > 107

> > ~~~~~~~~~~~~~~

> >

> > On the RedHat server, /etc/httpd/mason is set with 777 permission=
and

> > owned by 'apache:apache', which is how httpd.conf set for=
user and

> > group.

>

> try with nobody...

> >

> >

> > How can I stop this Permssion error?

> >

> > Thanks,

> > John Reiman

> >

>

>




------=_Part_37856_28563690.1229641188274--

Re: Mason Error

am 20.12.2008 20:12:48 von Mark Hedges

This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.

--373334887-1234912014-1229800100=:5402
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-15
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-ID:



On Thu, 18 Dec 2008, Felipe de Jes=FAs Molina Bravo wrote:
> 2008/12/18 db
> try with nobody...
> replace ownership of /etc/httpd/mason to 'nobody:nobody', and/or
> change User/Group settup to 'nobody' in httpd.conf
>
> DIDN'T solve the issue. =A0web page returns same error.
>
> My configuration is:
> - for directory of mason:
>            drwxr-xr-x=A0 4 nobody nogroup   96 oc=
t 22 10:29 mason=A0   
> - in my httpd.conf:
> User nobody
> Group #-1
>
> - in /etc/passwd
>         =A0 nobody:x:65534:65534:nobody:/:/bin/false
> - in /etc/group
>         =A0 nogroup:x:65533:

> mkdir /etc/httpd/mason/obj/: Permission denied at
> /usr/lib/perl5/site_perl/5.8.5/HTML/Mason/Compiler/ToObject. pm
> line 107

'nobody' probably will not work because your server runs as 'apache'
in RedHat.

Are you running with taint mode? It looks like the file
name is not detainted until after creating it, which is
probably a bug at line 114 of ToObject.pm... have you
considered using a more recent version of Mason?

For this to work it seems like your permission should be:

chown apache:apache /etc/httpd/mason
chmod 755 /etc/httpd/mason

Does the directory /etc/httpd/mason/obj already exist, but
with permissions that cannot be read by the web server to
determine if it does exist?

Can we see output of `ls -la /etc/httpd/mason/` please.

Incidentally it might make sense to set it to compile mason
objects to files in a directory other than /etc, which is
supposed to be for configuration. For instance, somewhere
in /var might be more appropriate.

Mark
--373334887-1234912014-1229800100=:5402--

Re: Mason Error

am 20.12.2008 20:22:52 von Mark Hedges

On Sat, 20 Dec 2008, Mark Hedges wrote:
> probably a bug at line 114 of ToObject.pm... have you
> considered using a more recent version of Mason?

err .. this is the most recent version