From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Re: Trouble saving to the emacs file dir under Windows Date: Mon, 13 Jun 2016 00:39:18 -0700 (PDT) Message-ID: <2ad2e21d-065f-4cdb-a836-8b30b199a235@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1465803638 32613 80.91.229.3 (13 Jun 2016 07:40:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2016 07:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 13 09:40:38 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bCMU7-0002T1-EB for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 09:40:35 +0200 Original-Received: from localhost ([::1]:54209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCMU1-00050d-5p for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 03:40:29 -0400 X-Received: by 10.157.38.150 with SMTP id l22mr11292081otb.28.1465803559517; Mon, 13 Jun 2016 00:39:19 -0700 (PDT) X-Received: by 10.36.36.133 with SMTP id f127mr211436ita.2.1465803559460; Mon, 13 Jun 2016 00:39:19 -0700 (PDT) Original-Path: usenet.stanford.edu!p34no6205071qgp.1!news-out.google.com!u18ni140qgd.1!nntp.google.com!p34no6205065qgp.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=122.56.211.39; posting-account=SVVH0AoAAABplEQzMkIR3gU7a0gK8IuF Original-NNTP-Posting-Host: 122.56.211.39 User-Agent: G2/1.0 Injection-Date: Mon, 13 Jun 2016 07:39:19 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:218118 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110427 Archived-At: On Monday, June 13, 2016 at 3:48:29 PM UTC+12, Eli Zaretskii wrote: > > Date: Sun, 12 Jun 2016 18:26:10 -0700 (PDT) > > From: Davin Pearson > > > > I am trying to get write access to the Emacs file dir under the MS Windows operating system. > > > > Here is the output of the chmod command: > > > > c:\Program Files (x86)\emacs-24.5\share\info>chmod 666 dir > > chmod: changing permissions of 'dir': Permission denied > > > > What gives? How do I go about getting write access to the file "dir"? > > Is that file really a read-only file? Does its Properties tab in > Explorer show the Read-only attribute set? If not, chmod won't help > you, and your problem is probably due to the fact that your user is > denied access to "Program Files" and everything under it. In that > case, the solution is not to install Emacs under "C:\Program Files", > but elsewhere, preferably on disk D. I am trying to write an automated installer module that patches the dir file to add an additional link to a file jtw-manual.info. My installer module complains about not being able to save the file "dir". If there is no way to change the file "dir" then my system will be less usable to users of GNU Emacs on Windows systems. Everything works fine under Linux, although the user has to be in logged in as root to patch the "dir" file, among other things. I thought that there must be a way of writing to the "dir" file... It is possible under GNU/Linux to change the "dir" file. That may be some way forward here. The user could boot into Linux and run the installer script which enables them to access the C:/Program Files (x86)/ folder. Do different flavours of GNU/Linux have the same format for accessing the C drive? On my system it is located at /media/www/C1TB where C1TB is the Windows name for my C drive.