X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Thorsten Kampe Subject: Re: Editing protected files in Windows 7 (like the etc/hosts file) Date: Mon, 16 May 2011 11:32:13 +0200 Lines: 8 Message-ID: References: <79185194FE99DA4FA42EE0E98FC5A320D208AC63 AT METROPOLITAN DOT kontera DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/3.0.4 X-IsSubscribed: yes 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 * Avishai Geller (Mon, 16 May 2011 02:09:57 -0700) > How do I edit my hosts file in cygwin on Windows 7? VI opens it in read-only mode. I have administrator permissions, but Windows 7 has that UAC feature which I think is preventing editing the file. You disable UAC or run the shell as Administrator. Thorsten -- 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