From owner-freebsd-hackers Fri Jul 28 18:06:02 1995 Return-Path: hackers-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id SAA17300 for hackers-outgoing; Fri, 28 Jul 1995 18:06:02 -0700 Received: from dg-rtp.dg.com (dg-rtp.rtp.dg.com [128.222.1.2]) by freefall.cdrom.com (8.6.11/8.6.6) with SMTP id SAA17286 for ; Fri, 28 Jul 1995 18:06:00 -0700 Received: by dg-rtp.dg.com (5.4R2.01/dg-rtp-v02) id AA09482; Fri, 28 Jul 1995 21:05:26 -0400 Received: (rivers@localhost) by ponds.UUCP (8.6.11/8.6.5) id UAA17812; Fri, 28 Jul 1995 20:54:28 -0400 Date: Fri, 28 Jul 1995 20:54:28 -0400 From: Thomas David Rivers Message-Id: <199507290054.UAA17812@ponds.UUCP> To: freebsd-bugs@freebsd.org, freebsd-hackers@freebsd.org Subject: Problem with /bin/mv on 2.0.5. Sender: hackers-owner@freebsd.org Precedence: bulk This is a problem on 2.0.5R... If you have the following directory: /usr/user/DIR and the mode of DIR is as in: drwx------ 2 user general 512 Jul 28 20:34 DIR/ and you execute the following (as the user 'user'): cd /tmp touch t mv t /usr/user/DIR you will get a message from mv: mv: /usr/user/DIR/t: set owner/group: Operation not permitted the message was not produced at 2.0. I have determined that /bin/mv hasn't changed, and that this message is produced by /bin/mv when the fchown() call for the destination failed, with errno set to EPERM. So, what's changed in fchown() that would cause this - the message is quite aggravating. - Dave Rivers -