GNU bug report logs - #9002
file-error Doing chown operation not permitted

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Tue, 5 Jul 2011 13:06:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#9002: closed (file-error Doing chown operation not permitted)
Date: Sat, 16 Jul 2011 22:00:04 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 16 Jul 2011 14:59:10 -0700
with message-id <4E2209AE.1050808 <at> cs.ucla.edu>
and subject line Re: bug#9002: file-error Doing chown operation not permitted
has caused the GNU bug report #9002,
regarding file-error Doing chown operation not permitted
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
9002: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9002
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: file-error Doing chown operation not permitted
Date: Tue, 05 Jul 2011 20:55:51 +0800
R runs the command dired-do-rename.

Try this:

Have two directories, both owned by you, but on separate disks.

Try to move a file that is NOT owned by you from one to the other.

Move `/cf/updates/df.j3d' to `/home/jidanni/df.j3d' failed:
(file-error Doing chown operation not permitted /home/jidanni/df.j3d)

That is because emacs is not using the mv(1) command like it should, but
instead resorting to a different error prone half home baked method or
something.

Tested on Debian.

P.S.,
file-error: Doing chown #looks better than
file-error Doing chown


[Message part 3 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8306 <at> debbugs.gnu.org, 9002-done <at> debbugs.gnu.org, jidanni <at> jidanni.org
Subject: Re: bug#9002: file-error Doing chown operation not permitted
Date: Sat, 16 Jul 2011 14:59:10 -0700
On 07/16/11 14:27, Glenn Morris wrote:
> Emacs 23.3 does not give this error, but the trunk does. This seems to
> be a result of the changes in
> 
> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8306

Right you are, and thanks for reporting it.  I fixed it in
bzr 105261 on the trunk.  copy-file's help string says "try to
transfer the uid and gid", with the implication that it's OK
if the attempt fails and no diagnosis should be made.

The doc uses stronger language for file modes ("This function always
sets the file modes") so a diagnostic is more appropriate there
and I left that one alone.


This bug report was last modified 13 years and 315 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.