Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

Preserve Permissions with Copy [Solved]

Started by seppalta, January 09, 2018, 07:41:22 PM

Previous topic - Next topic

seppalta

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.

Capitain_Jack

"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein

seppalta

Thanks, C._Jack.  Have not had time to test, but apparently copy -pr or cp -a should work according to man cp.

View the most recent posts on the forum