Closed (fixed)
Project:
DrupalPro
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
24 Oct 2012 at 14:46 UTC
Updated:
8 Nov 2012 at 05:40 UTC
After I completed some suggested updates, I have lost the ability to edit the hosts file using sudo. Thus, drush qc does not work, giving the following:
Creating dns config (add atrium.dev to /etc/hosts) ... [ok]
Command failed: [error]
127.0.0.1 atrium.dev #drupalpro
I have tried searches on issues with a locked hosts file to no avail. Any ideas?
Comments
Comment #1
seanhe commentedFigured this out myself. The hosts file became "immutable" somehow. Here is how to fix it:
~$ lsattr /etc/hosts
----i--------e- /etc/hosts
If there is an "i" then the file is immutable and the following command will reset that:
~$ sudo chattr -i /etc/hosts
Comment #2
mike stewart commentedglad you figured it out ... even more awesome you shared!