X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=F+JT8sF spbgUwnk/k1UxQoJJuKF4tfF/C4Bsevz7m7l9SIc8vYyYXqti+o0wr/dNHVRs0Vt 0KtSJZgPxA91cR7ANy5+0Y4ntQ7S5ypLkbvEt1E6imvQQ1ay+cJ2g8VgLfi6CZvY 39bRErXlfPj5ti2jK5pv4OSRCCF9UnDkiLH0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=EJo6X7OxtvmHT BBWs8ggKTPrlrQ=; b=W5BJKIuVJcgC37kl9ygB0NF4HL028rQPSf08MJroVeCj5 wnSwvhWcj71XavL+90xcmtj0axog5S6TzPQiZO5tU51y0C6Rrev0u8rinqz940FE O6HQ21F/OS1gM9bC8mYwvUMQp0NyE7DWRqt0uAPzh5wZhg0pNsjz9xa4q/ZcBk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: s87.webhostingserver.nl X-Received: by 10.112.224.9 with SMTP id qy9mr9170732lbc.57.1409902052958; Fri, 05 Sep 2014 00:27:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: From: Frank Fesevur Date: Fri, 5 Sep 2014 09:27:02 +0200 Message-ID: Subject: Re: vim can't write /etc/hosts To: "cygwin AT cygwin DOT com" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes 2014-09-05 4:33 GMT+02:00 Darik Horn: > On Thu, Sep 4, 2014 at 4:33 PM, Frank Fesevur wrote: >> >> Why can't vim write the file, or even better the symlinked file? I'm >> quite sure editing the symlink works in Win7, but can try tomorrow. > > Starting "C:\Cygwin\bin\mintty.exe" through a "Run As Administrator" > context doesn't produce an elevated bash prompt on my Windows 8 > workstation. > > Starting the "Command Prompt (Admin)" shortcut instead and running > "C:\Cygwin\bin\bash.exe --login" inside should give you the expected > behavior. There is no difference (for me) between starting mintty or cmd as administrator. With Win7 it *has* worked but not anymore. This method is *the* way for me to change the hosts file, because of the short path. "nano /etc/hosts" works without a problem on both Win7 and Win2012R2 (no Win81 at the office). The described echo command works fine. So write access should not be the problem. Only vim has these problems with the hosts file. I don't know if it is relevant, but I've added noacl to the /cygdrive entry of my fstab. Regards, Frank -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple