neuralnode
Technical User
Hi All,
Here's the challenge:
I have two filesystem that are almost exact copies.
The only difference is that one filesystem has correct permissions on directories and files, while the other doesn't.
What I want to do is to copy all permissions from filesystem (directory tree) A to filesystem B.
I cannot copy the files/dirs themselves becuase some files on the filesystem B have already changed, and cannot be rolled back.
So I need a bash/awk/sed script that will do it with permissions only.
Would you have some ready answer for this?
Thanx in advance!
Here's the challenge:
I have two filesystem that are almost exact copies.
The only difference is that one filesystem has correct permissions on directories and files, while the other doesn't.
What I want to do is to copy all permissions from filesystem (directory tree) A to filesystem B.
I cannot copy the files/dirs themselves becuase some files on the filesystem B have already changed, and cannot be rolled back.
So I need a bash/awk/sed script that will do it with permissions only.
Would you have some ready answer for this?
Thanx in advance!