web analytics

Blog

Recursive permission change using find

Tags: findpermissionrecursive

Published on: September 11, 2014 by Geo Paul

Recursive  permission change using find

Scenario:

Permission issues are common in domains hosted on Linux servers and we need to change the permission of multiple files and folders. Changing the permissions of each and every file separately is a tedious and time-consuming job. So here we are discussing how recursive permission change can be done:

For directories

find <location> -type d -exec chmod 755 {} \;

 eg :

 find  /home/go -type d -exec chmod 755 {} \;

 For files

find <location> -type f -exec chmod 644 {} \;

 Eg:

find /home/go -type f -exec chmod 644 {} \;

Category : Howtos, Linux, Troubleshooting

Geo Paul

Geo Paul

Geo Paul has good customer management skills and is ready to take up additional responsibilities whenever required. His analytical assessment and adaptability to changing situations and circumstances, makes him one of the highly preferred admin by various clients. He is a jovial guy and love to live life to the fullest.

You may also read:

Comments

Add new commentSIGN IN

Let's Connect

Get new updates

Categories

$0.000 items