From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.bugs Subject: bug#865: 23.0.60; The directory is unsafe today Date: Sat, 06 Sep 2008 03:30:27 +0200 Message-ID: <48C1DD33.2010703@gmail.com> References: <48BD642C.5050405@gmail.com> <48BD74D5.4050800@gnu.org> <48BDD155.8060005@gnu.org> <48BF2171.8040101@gnu.org> <48C0654B.2010007@gnu.org> Reply-To: "Lennart Borgman \(gmail\)" , 865@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1220665670 23564 80.91.229.12 (6 Sep 2008 01:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 6 Sep 2008 01:47:50 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org To: Francis Litterio , 865@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 06 03:48:44 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kbmup-00030J-L4 for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Sep 2008 03:48:44 +0200 Original-Received: from localhost ([127.0.0.1]:46980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kbmtp-0003G1-7d for geb-bug-gnu-emacs@m.gmane.org; Fri, 05 Sep 2008 21:47:41 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kbmtl-0003EI-1C for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:47:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kbmtk-0003E2-HM for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:47:36 -0400 Original-Received: from [199.232.76.173] (port=55884 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kbmtk-0003Ds-8y for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:47:36 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36182) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kbmtj-00034m-Vw for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:47:36 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m861lVWw006052; Fri, 5 Sep 2008 18:47:32 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m861e4L9003100; Fri, 5 Sep 2008 18:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: "Lennart Borgman (gmail)" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 06 Sep 2008 01:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 865 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.1220664644798 (code B ref -1); Sat, 06 Sep 2008 01:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 6 Sep 2008 01:30:44 +0000 Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m861UekO000792 for ; Fri, 5 Sep 2008 18:30:42 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbmdM-0000Ux-Ab for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:30:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbmdK-0000Rc-BH for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:30:39 -0400 Original-Received: from [199.232.76.173] (port=35929 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbmdK-0000R8-50 for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:30:38 -0400 Original-Received: from ch-smtp02.sth.basefarm.net ([80.76.149.213]:46586) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbmdJ-00016i-PU for bug-gnu-emacs@gnu.org; Fri, 05 Sep 2008 21:30:38 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:59915 helo=[127.0.0.1]) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KbmdH-0001bu-7s; Sat, 06 Sep 2008 03:30:35 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080905-0, 2008-09-05), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KbmdH-0001bu-7s. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KbmdH-0001bu-7s 502d96a9b3109c1f3709d3f60ff212d6 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-CrossAssassin-Score: 2 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Fri, 05 Sep 2008 21:47:36 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20217 Archived-At: Francis Litterio wrote: > Eli Zaretskii wrote: > >>> From: Francis Litterio > >>> If this solution is implemented, keep in mind that there is a Group >>> Policy setting called "System objects: default owner for objects created >>> by members of Administrators group" which can be set to either >>> "Administrators group" or "Object creator". If it is set to the latter >>> value, then newly-created files are owned by the user not the group. >> Thanks. Do you know which API can be used to find out >> programmatically whether this setting is one or the other? > > You had to ask. :) Some hours of Googling and reading bad MS > documentation reveals that Windows sets the following registry value to > 0 or 1 to reflect that particular policy: > > Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa > Value: NoDefaultAdminOwner > > If it is 0, then new files created by members of Local Administrators > are owned by the group, otherwise they are owned by the user. Is this the recommended way to check it? Quite often I have seen people on Internet claiming that you should look for a registry value when the documentation from MS clearly say you should use an API instead. > Some caveats: > > 1. I think that changing this value may have no effect on a machine in a > domain with restrictive domain policies, but that doesn't affect > Emacs, which would only read it. > > 2. This value might not exist in the registry on Windows versions prior > to Windows XP. That may be a bigger issue for Emacs. > > Hope this helps. > -- > Fran > > > > > >