[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp copy command

From: Matthew Woehlke
Subject: Re: cp copy command
Date: Thu, 31 May 2007 17:01:50 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20070509 Thunderbird/ Mnenhy/

address@hidden wrote:
Thanks for this "cp" copy command, it works and has good options.  In "man
cp" it states the "-p" option will preserve mode, ownership and timestamp.
When I copy from a backup directory it does not preserve ownership, but
does keep the original timestamp, which is usually all I've worried about
before.  Shouldn't  the ownership of the copied file be the same as the
origination file when using the "cp -p filefrom fileto" command?  When I
copy it shows the ownership as myself instead.

Unless you are root, this seems to be correct; you can't give away files unless you are root...

"943. I am not Bjorn of Borg."
 -- from 975 things Mr. Welch can no longer do in an RPG

reply via email to

[Prev in Thread] Current Thread [Next in Thread]