0

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.

0

1 Answer 1

1

Using --reference option the chmod command is capable to clone permissions from one file/directory to another

 $ chmod --reference=FolderB FolderA

Not the answer you're looking for? Browse other questions tagged .