Hi, 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 I did all this with my mintty started as administrator: uid=1000(Frank) gid=513(Geen) groups=513(Geen),0(root),544(Administrators),545(Gebruikers) I can edit the file starting my Notepad++ as administrator and open file. A bit surprising but this works: Frank@PC7 /cygdrive/c/Windows/System32/drivers/etc # echo "# test" >> hosts 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. 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