delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/09/07/11:06:04

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: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 AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=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 AT yandex DOT ru>
Reply-To: cygwin AT cygwin DOT com
Message-ID: <1975299711.20140907190048@yandex.ru>
To: Frank Fesevur <ffes AT users DOT sourceforge DOT net>, cygwin AT cygwin DOT com
Subject: Re: vim can't write /etc/hosts
In-Reply-To: <CAKf2h5SeYQ_Gg0u7ERH6ejZoXDwbPEB_ngpLzUO3qEexJYb0tA@mail.gmail.com>
References: <CAKf2h5SeYQ_Gg0u7ERH6ejZoXDwbPEB_ngpLzUO3qEexJYb0tA AT mail DOT gmail DOT com>
MIME-Version: 1.0
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 AT yandex DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019