From owner-freebsd-bugs Fri Apr 25 08:11:45 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id IAA21548 for bugs-outgoing; Fri, 25 Apr 1997 08:11:45 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id IAA21543 for ; Fri, 25 Apr 1997 08:11:43 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id BAA01527; Sat, 26 Apr 1997 01:01:54 +1000 Date: Sat, 26 Apr 1997 01:01:54 +1000 From: Bruce Evans Message-Id: <199704251501.BAA01527@godzilla.zeta.org.au> To: bugs@freebsd.org, jc@netview.net Subject: Re: owner sticky and mv Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >I think I have found a bug while moving (mv) files from one filesystem to >another. Files that are owner sticky (in this case root) do not transfer >their permissions properly. This may be a feature. The kernel rejects attempts by non-root to set the sticky bit for non-directories. mv(1) has no idea that the problem is caused by the sticky bit, so it doesn't try another chmod() to set the other bits. The sticky bit has no direct effect for non-directories, so perhaps is was being used by root to inhibit moving files :-). Bruce