cancel
Showing results for 
Search instead for 
Did you mean: 

Cascading Permissions

jabb0
Grafter
Posts: 716
Registered: 18-09-2007

Cascading Permissions

heya,
I have installed Ubuntu quite successfully.

However when moving from windows, i backed-up all my required data - and successfully copied it to my home dir.

Now there is literally thousands of files, and i do own them all in ermissions, but write access is not enabled on them.

Can anyone show me a command to change the permissions of my files to give me write access to - all of them in the one go?

It either this or change the permission of each file individually - which would just be soul destroying.
1 REPLY
Community Veteran
Posts: 14,469
Registered: 30-07-2007

Cascading Permissions

chmod -R 755 <directory name>

This will recurse down <directoryname> changing all files and directories it finds to 755 permissions.

You can also do a recursive change of owner & group with

chown -R owner.group <directoryname>

Also see CGI: UNIX file permissions