Re: chown function

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

 



Well, apache use the "nobody:nobody" permission...

""Keith Spiller"" <larentium@xxxxxxxxxxxx> wrote in message
news:d3e901c5c8a7$239a8530$6401a8c0@xxxxxxxxxxxx
> Hi Jasper,
>
> When using my Php script, I don't see any error messages.
>
> I have logged in using SSH, but the directories created are
> owned by 48 and not my ftp user and so I have to switch
> to a super user to make any changes.
>
> Also, even though I use:
> mkdir("$endpath", 0777);
> The resulting directories end up as 755.
>
> Yeah I have a feeling that you are right, that apache on
> my server does not have chown permissions.
>
> Thank you very mych for your help.
>
>
> Keith
>
> ----- Original Message ----- 
> From: "Jasper Bryant-Greene" <jasper@xxxxxxxxxxxxxxxxxx>
> To: <php-general@xxxxxxxxxxxxx>
> Sent: Monday, October 03, 2005 11:27 PM
> Subject: Re:  chown function
>
>
> > Keith Spiller wrote:
> >> I'm using:
> >>
> >> chown("$endpath", "admin");
> >>
> >> to try to change the owner of directories after using mkdir()
> >> to create them.  It continues to fail on my remote Fedora server.
> >
> > With what error message? Have you tried logging in with SSH or similar
and
> > trying the same command?
> >
> > More than likely the user apache is running as doesn't have permissions
to
> > chown -- in fact I believe that in order to chown files one must be root
> > (at least that's the way it seems to work on my system).
> >
> > You could use chmod instead to allow the "admin" user access to your
> > files.
> >
> > -- 
> > Jasper Bryant-Greene
> > Freelance web developer
> > http://jasper.bryant-greene.name/
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux