When I upload new files to my CentOs server, with cPanel and csf the files are given 777 permissions automatic.
How do I change this?
I don't want my files to get 777 permissions automatic...
on 06/10/2012 – Made popular on 06/10/2012
I have to change the file permissions for a large amount of files (17 or so).
I can create a new directory and then move the files to this directory and then change all the files permissions within it.
But I was trying something else:
The files of the directory are seperated by a comma. I then copied the files I wanted to change the permissions.
After using the following page (http://superuser.com/questions/581194/setting-correct-permissions-for-up...) to get my permissions on my Raspberry Pi right, I'm unable to upload new files or edit existing files. I keep getting following error:
I have a site (many files and folders) and I need to change the permissions to default.
Files: 644 and Folders 755 . Now I have 666 for files and 777 for folders.
I can not do it manually because I have many folders that include folders and files etc.
My OS is Centos so I can run a bash shell script.
How can I change those permissions automatically ?
Any code will be welcomed.
I am trying to make changes to my website over ftp but when I save any files it changes the permissions and owner to my username. I can edit files in the same folder trough samba without changing the permissions. I really don't understand how the permissions for the /var/www folder work and I'm pulling my hair out trying to get it to work.