at your unix prompt, (assuming you are running apache) enter the command
"ps -ef |grep httpd"

you should see the httpd (apache) process, and who owns it. Typicly this is
the user "nobody". Your file needs to be owned by the user that owns the
httpd process.

- Jason Bell

----- Original Message -----
From: "Police Trainee" <[EMAIL PROTECTED]>
To: "PHP" <[EMAIL PROTECTED]>
Sent: Friday, August 31, 2001 11:50 AM
Subject: Re: [PHP] chmod failed: Operation not permitted


> the files are all owned by me, that is, my unix login.
> --- Jason Bell <[EMAIL PROTECTED]> wrote:
> >  who owns the file to begin with? your account?  a
> > web server typically runs
> > as a low access account, such as "nobody" on Unix.
> > So, what is probably
> > happening is that you don't have permissions to
> > chmod the file. Doesn't have
> > anything to do with your PHP configuration.
> >
> > Jason Bell
> >
> > ----- Original Message -----
> > From: "Police Trainee" <[EMAIL PROTECTED]>
> > To: "PHP" <[EMAIL PROTECTED]>
> > Sent: Friday, August 31, 2001 11:43 AM
> > Subject: [PHP] chmod failed: Operation not permitted
> >
> >
> > > can anyone help?
> > > safe mode is set to "0", which i believe is "off".
> > >
> > > i put a chmod command in one of my scripts and got
> > the
> > > following error on running it:
> > >
> > > Warning: chmod failed: Operation not permitted in
> > > /path-here/index.phtml on line 1
> > >
> > > why won't chmod work?
> > >
> > > the chmod command i used is:
> > <?chmod("../index.phtml",
> > > 0646);write data to file that has been made
> > > world-writable here; chmod("../index.phtml",
> > 0644);}?>
> > >
> > > the full error printout is:
> > >
> > > Warning: chmod failed: Operation not permitted in
> > > /path-here/index.phtml on line 1
> > >
> > > Warning: fopen("../index.phtml","a") - Permission
> > > denied in
> > > /path here/index.phtml on line 1
> > >
> > > Warning: Unable to find file identifier 0 in
> > > /path here/index.phtml on line 2
> > >
> > > Warning: chmod failed: Operation not permitted in
> > > /path-here/index.phtml on line 2
> > >
> > > I know the second error is because the file wasn't
> > > made world-writable so it wasn't able to write to
> > it,
> > > i don't know what the third error is for
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get email alerts & NEW webcam video instant
> > messaging with Yahoo!
> > Messenger
> > > http://im.yahoo.com
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > To contact the list administrators, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
Messenger
> http://im.yahoo.com
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to