toolinbox/iHosts

Security Questions

Closed this issue · 1 comments

  1. What does +a in sudo chmod +a 'user:jason:allow write' /etc/hosts do exactly? Can't seem to find any reference on this.

  2. How to reset the hosts permission which was set by sudo chmod +a 'user:jason:allow write' /etc/hosts?

  1. From https://ss64.com/osx/chmod.html:
+a mode    Insert a new ACL (Access Control List) entry
  1. Run:
sudo /bin/chmod -a 'user:jason:allow write' /etc/hosts
sudo /bin/chmod +a 'user:jason:deny write' /etc/hosts