ftp upload files to 755

Associate
Joined
18 Oct 2002
Posts
2,261
Location
Kidderminster
is there a way to force files uploaded into a directory to have 755 permissions as soon as they are uploaded?

is it just a case of setting the folder they are uploading into to 755 permissions?

Cheers
Deano
 
If you have shell access to the server you could do "chmod -R 755 <dirname>"
That would set permissions to 755 for all files and subdirectories in the the directory.

If you don't have shell access, maybe you could ask your host to set up a script to change permissions for new files and then run the script using crontab every once in a while (depending on how often you upload).

If your local OS is Linux or any other UNIX system you could do the same locally and then upload. It should keep the same permissions.
 
Last edited:
Back
Top Bottom