If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!ive recently bought a dedicated server with plesk, and im used to whm/cpanel.
the trouble im having is that when i upload images to a directory via. FTP, they automatically have the 'wrong' chmod values (ie. different to what they did with cpanel - which im used to)
the problem is that regular users have write access.
does anybody know how to change the default uploaded chmod value so that it is a certain chmod value (or that of the parent directory) when uploaded??
i have access to the shell, etc. ... so im sure theres some way of changing the default value :-\
Try this:
shell: chmod 755 /folder_name
» Premium Domains » aga.in | cha.in | sta.in | unp.in | ~ PM to inquire ~
thanks for the reply kingpin but i believe that will only change the actual folder chmod after uploading, the users wont have the knowledge of how to do this.
the idea of the script (which worked perfectly on both a whm/cpanel running on linux and xampp installation in windows) is that the user simply uploads images to a directory and then goes on the website where they get the script to create two seperate folders and then generate thumbnails of the original images and save them in the folder...
the problem is that because of writing permissions, my script cant create the folder.
i read that in safe mode PHP doesnt allow non-owners of folders to write to the actual folder (and PHP regards itself as the user 'apache', rather than the user who uploaded the images).... however, my server isnt in safe mode.
any ideas?
Bookmarks