From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Trouble saving to the emacs file dir under Windows Date: Mon, 13 Jun 2016 16:57:44 +0300 Message-ID: <83h9cxfaxz.fsf@gnu.org> References: <2ad2e21d-065f-4cdb-a836-8b30b199a235@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465827695 28569 80.91.229.3 (13 Jun 2016 14:21:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jun 2016 14:21:35 +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 16:21:32 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 1bCSk2-0002zT-Nq for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 16:21:26 +0200 Original-Received: from localhost ([::1]:56867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCSk2-000572-0P for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Jun 2016 10:21:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCSMM-0008Pp-I2 for help-gnu-emacs@gnu.org; Mon, 13 Jun 2016 09:56:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bCSMI-0003N5-7j for help-gnu-emacs@gnu.org; Mon, 13 Jun 2016 09:56:57 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59382) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bCSMI-0003Mv-4T for help-gnu-emacs@gnu.org; Mon, 13 Jun 2016 09:56:54 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3645 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bCSMG-0005ft-Aq for help-gnu-emacs@gnu.org; Mon, 13 Jun 2016 09:56:52 -0400 In-reply-to: <2ad2e21d-065f-4cdb-a836-8b30b199a235@googlegroups.com> (message from Davin Pearson on Mon, 13 Jun 2016 00:39:18 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:110431 Archived-At: > Date: Mon, 13 Jun 2016 00:39:18 -0700 (PDT) > From: Davin Pearson > > > > 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... You didn't reply to any of the questions I asked. You also didn't tell enough about your installer module. So it's hard to help you more. One thing I can add to what I already said: the usual way of modifying the 'dir' file is by running the 'install-info' utility. Not sure if doing so will solve your problem, but manually updating 'dir' is not a good idea, either. > 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. IME, installing data files under "C:\Program Files" is asking for trouble. IME, all those problems go away if you install on a non-system drive. But I already said that.