*BSD News Article 91931


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!inquo!nntp.uio.no!newsfeed.nacamar.de!fu-berlin.de!IN-Berlin.DE!fub!mind.de!nostromo.in-berlin.de!ripley
From: ripley@nostromo.in-berlin.de (H. Eckert)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: mv filename: set owner/group: Operation not permitted
Date: 25 Mar 1997 10:22:32 GMT
Organization: Private access site (FreeBSD 2.1-R), Berlin, Germany, Europe
Lines: 31
Message-ID: <slrn5jf9r8.4jl.ripley@nortobor.nostromo.in-berlin.de>
References: <Pine.SUN.3.95.970323163337.10686A-100000@typhoon.typhoon.co.jp>
NNTP-Posting-Host: nortobor.nostromo.in-berlin.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: slrn (0.8.8.2 UNIX)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37718

nfung@typhoon.co.jp (N Fung):
> Whenever I 'mv' a file from one file system to another, I get this
> error/warning message:
> 
> mv: /target/filesystem/filename: set owner/group:  Operation not permitted
> 
> The file is moved successfully though.  mv'ing files within the same file
> system doesn't producing any such message. 

This is most certainly the case when you move files from /tmp to
your home-directory.  I get this message too and it is completely
safe to ignore it.  This happens because the files in /tmp inherit
the group "bin" of which I'm not really a member.  So the mv command
tries to recover the group-setting on the destination file after it
copied the data (which is necessary when moving data across different
file systems) but fails.  You don't get the message when moving on
a single file system because in this case no data is copied at all.
Instead a new directory entry is created that points to the same inode
and the old one is unlinked.  The group is stored inside the inode so
it is not lost...

Greetings,
				Ripley


-- 
H. Eckert, 10777 Berlin, Germany
ISO 8859-1: Ä=Ae, Ö=Oe, Ü=Ue, ä=ae, ö=oe, ü=ue, ß=sz.
"(Technobabbel)" (Jetrel) - "Müssen wir uns diesen Schwachsinn wirklich
anhören?" (Neelix)