💻 Software
Cygwin - how to edit a read only file?
Fresh5 days ago
Mar 15, 202610473 viewsConfidence Score0%
0%
Problem
I'm trying to edit /etc/hosts using Vi in Cygwin but it's read only. Is there a command similar to sudo? How do I edit a read-only file? Thanks
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Cygwin - how to edit a read only file?
Low Risk
Opening your cygwin shell as Administrator will grant your user root access. Then the files will no longer be readonly.
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix