A small article to remember of a usefull command that helped me more than once repairing corrupted SVN directories. If the permissions of hidden directories get modified, recursive commands like :
chmod -Rf or chown -Rf
won't have any effect for dotted (hiddend) directories. In practice, this is a good thing, as it avoids changing bu mistake permissions in setting directories.
In some case anyway you wish to recursively modify the permissions of many subdirectories, including hidden ones.
then you can always use the useful "find" command for something such as:
find . -exec chmod 755 * {} \;
find . is looking for anything inside your dir, then use the -exec modifier to apply the command you wish to each of the files returned by find.
chmod -Rf or chown -Rf
won't have any effect for dotted (hiddend) directories. In practice, this is a good thing, as it avoids changing bu mistake permissions in setting directories.
In some case anyway you wish to recursively modify the permissions of many subdirectories, including hidden ones.
then you can always use the useful "find" command for something such as:
find . -exec chmod 755 * {} \;
find . is looking for anything inside your dir, then use the -exec modifier to apply the command you wish to each of the files returned by find.
Commentaires
Enregistrer un commentaire
Tell me what you think