Recursively fixing file permissions

Submitted by fago on Sun, 03/01/2015 - 16:22

When you want to recursively fix file permissions, directories usually should get a umask of 755 while files should default to 644 unless they are scripts.

Fortunately, chmod has the +X modifier for that: +X only adds the execution bit to directories, while it does not add it to files. It keeps pre-existing execution bits for files though. Thus, to fix all directories to have 755 and files to have 644 or 755 depending on the existing exexcution bit, just run:

chmod -R =rwX .

If you want to reset all files to 644 also, run

chmod -R -x,=rwX .

Tags

Comments

patricecooper

Fri, 12/23/2016 - 05:01

As a part of academic work students need to complete their internal work like assignments, seminars, projects etc .And the main thing to according to graduation students is research paper means writing essays and others sorts of assignments like dissertations, thesis papers, research papers, term papers etc can be a challenging task for the students of all academic level. So students must depend on the genuine resources available in the internet. Almost all skip the task to write a research paper. Research paper can provide good knowledge and also good language skill. So by writing a research paper one can get excellent knowledge. Almost all skip the task to write a research paper. Research paper can provide good knowledge and also good language skill. Almost all essay writing service available is issues better quality essay paper for our academic work. A research paper can be used for exploring and identifying scientific, technical and social issues. If it's your first time writing a research paper, it may seem daunting, but with good organization and focus of mind, you can make the process easier on yourself. Most of the students are focusing on the quality and plagiarism free information for their academic work. For reaching good quality knowledge one should have excellent language skill. So one should have to develop the language skill along with vocabulary. There are so many online resources available now. They includes Cheap essay writing service, freelance service etc.
Ref :http://essayguardian.com