Is there a command or flag to clone the user/group ownership and permissions on a file from another file? To make the perms and ownership exactly those of another file?
Shell Command – How to Clone Ownership and Permissions from Another File
chownfilespermissionsshell
Best Answer
On GNU/Linux
chown
andchmod
have a--reference
option