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@xxxxxxxxxxxxx> wrote in message news:41EF9165.6040500@xxxxxxxxxxxxxxxx > 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php