I had multiple terminal windows open using SSH to access a webserver behind reverse proxies and was making changes to my hosts file to alternate between the webserver and public ip. While not paying attention I accidently executed sudo chmod 777 /private/etc/hosts
instead of just opening it with sudo nano /private/etc/hosts
now I'm not sure what permissions I should restore it to.
Asked
Active
Viewed 1,767 times
3
![](../../users/profiles/1294237.webp)
James
- 3,173
- 3
- 36
- 56
1 Answers
4
% ls -ld /private/etc/hosts
-rw-r--r-- 1 root wheel 473 29 Jan 18:46 /private/etc/hosts
![](../../users/profiles/78845.webp)
Johnsyweb
- 121,480
- 23
- 172
- 229
-
Thanks. Same as the majority of the other files in /private/etc* - just wanted to make sure. – James Feb 18 '13 at 06:38