Reply to Re: [PHP] mkdir security concern

Your name:

Reply:


Posted by Kids_pro on 01/21/05 03:24

So your suggestion is that I should create an ftp account and use this
account to create folder structure for user right?

I still not sure about the permission to set.
If I set 0755 how do OS know who is the owner?

May be I think too much. But let say I use ftp account: ftp1 to create
folder structure
That mean owner is ftp1 user right? And then later I use PHP file upload
script to upload image to user folders what will happen?




"Marek Kilimajer" <lists@kilimajer.net> wrote in message
news:41EF9165.6040500@kilimajer.net...
> kids_pro wrote:
>> Hi there,
>>
>> I want to create a script.
>> When user register I want to create a folder :
>> users\<new_user_folder>\images
>> The purpose is that I want to allow them to upload image to this image
>> folders.
>>
>> What sort of permission should I give to each folder
>> Root: users, <new_user_folders>, and images folder.
>>
>
> The least necessary. That depends on your server setup, primarily the user
> id your scripts are run under (mod_php/cgi or suexec). You might want to
> use ftp functions to create the directories if they would be created with
> apache as the owner otherwise.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация