GNU bug report logs - #41570
Add "takeown" command for Dired on Windows

Previous Next

Package: emacs;

Reported by: "A. Peter Blicher" <blicher <at> comcast.net>

Date: Wed, 27 May 2020 22:19:01 UTC

Severity: wishlist

Found in version 26.3

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Kangas <stefan <at> marxist.se>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "A. Peter Blicher" <blicher <at> comcast.net>, 41570 <at> debbugs.gnu.org
Subject: bug#41570: 26.3; dired chown
Date: Thu, 3 Sep 2020 20:38:23 +0000
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: "A. Peter Blicher" <blicher <at> comcast.net>
>> Date: Wed, 27 May 2020 14:46:39 -0700
>>
>> Dired chown command complains that chown is not available for windows
>> systems.  However, windows versions >= 7 (at least) have the "takeown"
>> command, which while not as comprehensive as the unix chown command at
>> least allows the current user to take ownership of a file/dir, as long
>> as the user has admin privileges.  It would be useful for dired to
>> permit this possibility on windows systems.
>
> AFAIU, 'takeown' is different from 'chown', in that it only allows to
> change the file's owner to either the current user or the
> Administrators group, it doesn't allow you to change the ownership to
> any other user except one of those two.  Also, I think the command
> requires elevation, doesn't it (thus you mention "admin privileges")?
>
> So I'm not sure that command is a good replacement for 'chown', but
> maybe you have something in mind I'm missing?

The proposal here was to change chown for takeown in Dired.  From the
discussion, it seems like this is not a technically good solution.

Is there anything more to do here, or could this bug report be closed?

Best regards,
Stefan Kangas




This bug report was last modified 4 years and 251 days ago.

Previous Next


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