X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=kUs/cGt6eZTXkw/N
	HN8bXMRsBPDcWB2dO5AG/81QDW5PNb8xACGV3jqqPYyL5pEJ7jhH5D3Ec16L7s+t
	K4LugUeJrfDlPtc4eBP3V0gavOoFH+BJfxDqbTCjwNVcKBCFclbJmJdD+5jp+lRN
	3PvJNsACvdyngTY72PpUuFaGN0E=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=H7zjIRpuaFcTo3YqcCSgEr
	hQanA=; b=vvqopSxOm6KN8W3ipcspH/GRiuXOGYcg79ff5OKBcUaSP9ZmtmIKHX
	UUE71ybUeppK6qRD4xfdMWEWUO2+spdbYwE7Dr7VS6UdXs3cCY9xWGn/enp7bmr5
	gelppVGU6QBuzGFsEcBOiRi3PtmSYeCErnebrPck46Q5yzWAsnS/w=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.6 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtpback.ht-systems.ru
Date: Sun, 7 Sep 2014 19:00:48 +0400
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <1975299711.20140907190048@yandex.ru>
To: Frank Fesevur <ffes@users.sourceforge.net>, cygwin@cygwin.com
Subject: Re: vim can't write /etc/hosts
In-Reply-To: <CAKf2h5SeYQ_Gg0u7ERH6ejZoXDwbPEB_ngpLzUO3qEexJYb0tA@mail.gmail.com>
References: <CAKf2h5SeYQ_Gg0u7ERH6ejZoXDwbPEB_ngpLzUO3qEexJYb0tA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Frank Fesevur!

> On my Win81 machine I tried to edit /etc/hosts with vim. When I try to
> write the file I get this error:
> "/etc/hosts" E166: Can't open linked file for writing

> Since /etc/hosts is a symlink to
> /cygdrive/c/windows/System32/drivers/etc/hosts so I tried to edit the
> file with the full path but that fails as well:
> "/cygdrive/c/windows/System32/drivers/etc/hosts" E212: Can't open file
> for writing

Adding to what other people said, most self-respecting antivirus applications
explicitly block access to system hosts file.
For obvious reasons.
If you absolutely NEED to modify it, and can't resolve your issues in any
other way, disable hosts file protection first.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 07.09.2014, <18:58>

Sorry for my terrible english...


--
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

