I changed the permissions of my host file /etc/hosts by doing a chmod og+w.
What's the default permission so that I can switch it back?
|
I changed the permissions of my host file What's the default permission so that I can switch it back? |
||||
|
The default file permissions for |
|||||||||
|
sudo chmod og-w /etc/hosts. Most files have permissions like644and directories755. Exceptions exists, highly sensitive files like/etc/shadowhave640. – Lekensteyn Jun 27 '11 at 20:55sudo chmod o-w whatevercan almost always be executed without pain. Only shared directories like/tmpor/var/tmphave that permission bit set, having it in other directories might introduce a security hole. – Lekensteyn Jun 27 '11 at 21:00