NetBSD Problem Report #933

From gnats  Sat Apr  1 03:20:16 1995
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.10/8.6.10) with ESMTP id DAA00212 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Sat, 1 Apr 1995 03:20:15 -0800
Message-Id: <199504010926.TAA09150@zen.void.oz.au>
Date: Sat, 1 Apr 1995 19:26:31 +1000
From: "Simon J. Gerraty" <sjg@zen.void.oz.au>
Reply-To: sjg@zen.void.oz.au
To: gnats-bugs@netbsd.org
Subject: fchown warning from mv since updating to -current
X-Send-Pr-Version: 3.2

>Number:         933
>Category:       port-i386
>Synopsis:       mv complains about "set owner/group".
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnats-admin
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Apr 01 03:35:07 +0000 1995
>Closed-Date:    Sat Apr 26 04:43:37 +0000 1997
>Last-Modified:  Sat Apr 26 04:44:47 +0000 1997
>Originator:     Simon J. Gerraty
>Release:        Mar27 -current
>Organization:
Zen Programming...
>Environment:

System: NetBSD zen.void.oz.au 1.0A NetBSD 1.0A (ZEN) #0: Wed Mar 29 22:56:59 EST 1995 root@zen.void.oz.au:/d2/current/src/sys/arch/i386/compile/ZEN i386


>Description:

Since updating from 1.0 to March27 -current, mv complains when moving
files from /tmp to say /var/spool/nn (all being done by user news)

news:1$ touch /tmp/junk
news:2$ mv /tmp/junk /var/spool/nn
mv: /var/spool/nn/junk: set owner/group: Operation not permitted
news:3$ ls -alg /var/spool/nn/junk
-rw-rw-r--  1 news  news  0 Apr  1 19:17 /var/spool/nn/junk
news:4$ ls -algd /var/spool/nn     
drwxrwxr-x  3 news  news  512 Apr  1 19:17 /var/spool/nn/

News owns the original file and the target directory.

news:11$ touch /tmp/junk
news:12$ ls -lg /tmp/junk
-rw-rw-r--  1 news  wheel  0 Apr  1 19:20 /tmp/junk

When I do the same as user sjg (mv /tmp/x $HOME) I get no complaint
but the file remains in group wheel.  Neither $HOME nor /var/spool/nn
have any interesting mode bits set.

>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mrg 
State-Changed-When: Fri Apr 25 21:43:37 PDT 1997 
State-Changed-Why:  
this is because of a couple of things: 
- /tmp is group wheel, so that is inherited on /tmp/junk. 
- news is not in group wheel, so, it may not set the group 
to `wheel' at any point of time. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.