Advertising

Author Topic: Preserve Permissions with Copy [Solved]  (Read 117 times)

Offline seppalta

  • Full Member
  • ***
  • Posts: 140
Preserve Permissions with Copy [Solved]
« on: January 09, 2018, 07:41:22 pm »
How can I copy a file or directory while preserving ownerships and permissions?  It appears that after a copy, the permissions always change to "nobody", regardless of what they were before and who owns the file/directory.
« Last Edit: January 10, 2018, 09:54:58 pm by seppalta »

Offline Capitain_Jack

  • Jr. Member
  • **
  • Posts: 63
Re: Preserve Permissions with Copy
« Reply #1 on: January 10, 2018, 12:13:11 pm »
Hi there! Take a look here:
https://unix.stackexchange.com/questions/43605/how-do-i-copy-a-folder-keeping-owners-and-permissions-intact
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein

Offline seppalta

  • Full Member
  • ***
  • Posts: 140
Re: Preserve Permissions with Copy [Solved]
« Reply #2 on: January 10, 2018, 10:01:51 pm »
Thanks, C._Jack.  Have not had time to test, but apparently copy -pr or cp -a should work according to man cp.