Re: mkdir Question
| From: | Chris Lambert | Date: | Sun, 26 Aug 2001 21:58:32 +0000 |
| Subject: | Re: mkdir Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64548@lists.php.net to get a copy of this message | ||
Setting the file to have 0777 permissions will allow you to read and write
it from any user on the system. However, it doesn't allow you to change the
ownership (or the permissions) unless you're its creator. Giancula suggested
chowning the file from within your PHP script, as you're still directing
from user "nobody".
/* Chris Lambert, CTO - chris@whitecrown.net
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
----- Original Message -----
From: Jeff Oien <jeff@webdesigns1.com>
To: PHP <php-general@lists.php.net>
Sent: Sunday, August 26, 2001 4:41 PM
Subject: RE: [PHP] mkdir Question
| However even the permission of 0777 doesn't let me do anything to
| the directory or files in it. I can't even chown or chmod anything in
| it using Telnet once it's created.
| Jeff Oien
|
| > Jeff
| > JO> mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777);
| > JO> it sets it to nobody instead of my username.
| > "Nobody" is the user runng the Apache process that's why it is the owner
| > of the directory.
| > You can "chown" the direcotry from your PHP script after you create
| > it or "chmod" the files you copy there.
| >
| > Cheers,
| > Gianluca
| >
| >
| > JO> I'm then unable
| > JO> to delete or modify files in that directory. Is there a way around
| > JO> this? Thanks.
| > JO> Jeff Oien
| >
| >
| >
| >
| > --
| > ALBASOFTWARE
| > C/ Mallorca 186 - 3º 1ª
| > 08036 Barcelona (Spain)
| > Tel. +34 93454009 - +34 934549324
| > Fax. +34 934541979
| > @@ ICQ 47323154 @@
| > webmaster@albasoftware.com
| > http://www.albasoftware.com
| > http://www.phpauction.org
| > http://www.gianlucabaldo.com
| >
| >
| > --
| > PHP General Mailing List (http://www.php.net/)
| > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
| > For additional commands, e-mail: php-general-help@lists.php.net
| > To contact the list administrators, e-mail: php-list-admin@lists.php.net
| >
|
|
| --
| PHP General Mailing List (http://www.php.net/)
| To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
| For additional commands, e-mail: php-general-help@lists.php.net
| To contact the list administrators, e-mail: php-list-admin@lists.php.net
|
|
|