Folder A has correct ownership and permissions on all its files/subfolders. Folder B exact same content but with ownership and permissions messed up. Need to apply chmod/chown using Folder B as reference on everything under FOlder A.
Asked
Active
Viewed 455 times
1 Answers
1
Using --reference option the chmod command is capable to clone permissions from one file/directory to another
$ chmod --reference=FolderB FolderA
Hasta Tamang
- 111
- 3