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: 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=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 Reply-To: cygwin AT cygwin DOT com Message-ID: <1975299711.20140907190048@yandex.ru> To: Frank Fesevur , cygwin AT cygwin DOT com Subject: Re: vim can't write /etc/hosts In-Reply-To: References: 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 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