copy file

How can i copy file from many user and keep same setting for owner and permission
Thank
teeraAsked:
Who is Participating?
 
paullamhkgConnect With a Mentor Commented:
for more detail read the man page of cp "man cp" you will find option you can use for cp, so that you can make use of other option

eg you can copy the whole folder/directory by using the -R so that cp -Rp will copy the folder/directory and it's content and preserve the attributes of each file and directory as owensleftfoot suggested.
0
 
owensleftfootConnect With a Mentor Commented:
Just use cp with the -p flag.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.