[Top][All Lists]

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

Re: cp copy command

From: Bob Proulx
Subject: Re: cp copy command
Date: Thu, 31 May 2007 23:13:19 -0600
User-agent: Mutt/1.5.9i

address@hidden wrote:
> 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.

This is a system dependent feature.  Some older classic Unix systems
allowed users to give away files.  But it causes problems and most
modern systems do not allow this behavior.  Please look at the
documentation here:


Look for "Why can only root chown files?"  It will explain in more
detail the issue that you are experiencing.  It talks about chown but
it is the same issue as with 'cp -p'.


reply via email to

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