Unix: Is there a way to "copy" file or directory permissions?
Fresh3 days ago
Mar 15, 202617750 viewsConfidence Score0%
0%
Problem
I have two files in a directory. One has correct permissions and the other has not. Is there a way I can "copy" the set of permissions from one file to another?
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Unix: Is there a way to "copy" file or directory permissions?
Low Risk
The GNU version of the chmod utility can copy the mode from one file ( ) to another ( ). GNU coreutils is found in most Linux distributions and Cygwin, among other places. Not all chmod implementations provide this option.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix