From owner-freebsd-questions Wed Sep 11 02:22:08 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id CAA22812 for questions-outgoing; Wed, 11 Sep 1996 02:22:08 -0700 (PDT) Received: from zwei.siemens.at (zwei.siemens.at [193.81.246.12]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id CAA22803 for ; Wed, 11 Sep 1996 02:21:49 -0700 (PDT) Received: from sol1.gud.siemens.co.at (root@firix [10.1.143.100]) by zwei.siemens.at (8.7.4/8.7.3) with SMTP id LAA02810 for ; Wed, 11 Sep 1996 11:20:33 +0200 (MET DST) Received: from ws2301.gud.siemens.co.at by sol1.gud.siemens.co.at with smtp (Smail3.1.28.1 #7 for ) id m0v0lTq-0001zPC; Wed, 11 Sep 96 11:21 MET DST Received: by ws2301.gud.siemens.co.at (1.37.109.16/1.37) id AA107633406; Wed, 11 Sep 1996 11:16:46 +0200 From: "Hr.Ladavac" Message-Id: <199609110916.AA107633406@ws2301.gud.siemens.co.at> Subject: Re: cp problems? To: tom@tomqnx.com (Tom Torrance at home) Date: Wed, 11 Sep 1996 11:16:46 +0200 (MESZ) Cc: questions@freebsd.org In-Reply-To: from "Tom Torrance at home" at Sep 11, 96 00:26:40 am X-Mailer: ELM [version 2.4 PL24 ME8a] Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk E-mail message from Tom Torrance at home contained: > Assume I have a file X which is 4555 root:bin > Y which is 0755 root:wheel > > As root, cp Y X results: > 1) Although I don't have write permission, the file is transferred. > 2) The resulting file is 4555 root:bin > > Is this normal unix operation? AFAIK, yes. root has all the rights and access bits do not apply. The group of the file is set to the group of the containing directory (BSD behavior.) If you wish to keep the old ownerships, you need to cp -p (which will aslo keep the time stamps intact.) /Marino > I am running 2.2-960801-SNAP. > > Regards, > Tom > >