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 "like" that of another file?
|
On GNU/Linux
|
|||||||||||
|
|
On any unix with GNU utilities, such as (non-embedded) Linux or Cygwin, you can use If your system has ACLs, try the ACL commands
|
||||
|
If you are not using a system with GNU's chmod/chown (which support the Here a small script for
UPDATE: This is even easier using
|
||||