From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "A. Peter Blicher" Newsgroups: gmane.emacs.bugs Subject: bug#41570: 26.3; dired chown Date: Thu, 28 May 2020 08:54:29 -0700 Message-ID: <12570db6-9d3b-b0d5-3e5f-7953fe615d28@comcast.net> References: <83ftbksgmn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="125026"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 Cc: 41570@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 28 17:55:14 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jeKsB-000WON-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 17:55:11 +0200 Original-Received: from localhost ([::1]:36292 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeKsA-0004fy-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 May 2020 11:55:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35436) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeKs2-0004e7-Oo for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41324) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jeKs2-0006wc-FV for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:55:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jeKs2-0004dP-9q for bug-gnu-emacs@gnu.org; Thu, 28 May 2020 11:55:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "A. Peter Blicher" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 May 2020 15:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41570 X-GNU-PR-Package: emacs Original-Received: via spool by 41570-submit@debbugs.gnu.org id=B41570.159068128017785 (code B ref 41570); Thu, 28 May 2020 15:55:02 +0000 Original-Received: (at 41570) by debbugs.gnu.org; 28 May 2020 15:54:40 +0000 Original-Received: from localhost ([127.0.0.1]:52870 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeKrg-0004cm-Ap for submit@debbugs.gnu.org; Thu, 28 May 2020 11:54:40 -0400 Original-Received: from resqmta-po-04v.sys.comcast.net ([96.114.154.163]:37095) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jeKre-0004cZ-Ti for 41570@debbugs.gnu.org; Thu, 28 May 2020 11:54:39 -0400 Original-Received: from resomta-po-04v.sys.comcast.net ([96.114.154.228]) by resqmta-po-04v.sys.comcast.net with ESMTP id eJGyjY1sMYN1DeKrYjZboR; Thu, 28 May 2020 15:54:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1590681272; bh=U1BE0CSHdQ7q+R1QkTArn0Af86bYuMT1QUi2CbFUCFw=; h=Received:Received:Subject:To:From:Message-ID:Date:MIME-Version: Content-Type; b=uE1HKEybFOiYnYAUkTBMHSPXKcfB1J3ZkqGhHzxCr6O34KgtuUkRnCvUEcWE0n4ax muMcZbBP/HDU3VtTluRaUvTIB/B6dbGta4AVIeFr/CbagniNTnlZ4Rzq6aQAzka8JU AQS6PUtk/IaYPj69hEa5yd9Etxfwl80S6W1hTGdGw2zbRu1VwlZmL161l0o89tgHgk AY3uM8msS/DLdhTaB5/izMzD8eZFVSHeK/VllORf3UJjzUICpdocwpL7c/yX2Ul26P aBaeR52Ev/MPu935znOuWvKoCFph4YL/frgV4P8t73xtHND8TntkJ84YRIjLsYMeOE 0+DIdhNnkc4Eg== Original-Received: from [192.168.1.112] ([98.248.13.67]) by resomta-po-04v.sys.comcast.net with ESMTPSA id eKrXjwpKBpXeGeKrYj9vSO; Thu, 28 May 2020 15:54:32 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgeduhedruddviedggeekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuvehomhgtrghsthdqtfgvshhipdfqfgfvpdfpqffurfetoffkrfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepuffvfhfhkffffgggjggtgfesthejredttdefjeenucfhrhhomhepfdetrdcurfgvthgvrhcuuehlihgthhgvrhdfuceosghlihgthhgvrhestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepudfgveeivdffudeuuddvfeeitdegvdehteeuleduudeltdeitdfgkedukeefieejnecukfhppeelkedrvdegkedrudefrdeijeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhephhgvlhhopegludelvddrudeikedruddrudduvdgnpdhinhgvthepleekrddvgeekrddufedrieejpdhmrghilhhfrhhomhepsghlihgthhgvrhestghomhgtrghsthdrnhgvthdprhgtphhtthhopegslhhitghhvghrsegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepgeduheejtdesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthho pegvlhhiiiesghhnuhdrohhrgh X-Xfinity-VMeta: sc=-100.00;st=legit In-Reply-To: <83ftbksgmn.fsf@gnu.org> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:181145 Archived-At: Correct, takeown is not the same as chown. Also, Windows is not the same as Unix, unfortunately. takeown provides some of the capability of chown, thus it would be useful to have that functionality. Yes, the logged in user must have, as far as I know, admin privilege to use it, i.e. be 'elevated'. However, I would find that bit of functionality useful. No, takeown is not a replacement for chown, it's just a tiny bit of extra functionality in the same vein. The main reason I have more use for chown in windows compared to when I was using Unix is that Windows creates a profusion of different ownerships even for files I create under a single user (depending on how they were created), resulting in a mess that I often need to clean up. That mess is most evident using Dired, because it shows ownership by default, while usually Windows hides that information. The requirement for elevated privilege is not an issue for me, because I run in that mode all the time, against all advice, mainly because Windows' permission handling is so screwed up and opaque. However, for those who don't, that might either require extra code to handle, or maybe Windows would raise an elevation prompt dialog, not sure. Thanks for considering it. --peter On 5/27/2020 11:44 PM, Eli Zaretskii wrote: >> From: "A. Peter Blicher" >> 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? > > Thanks. >