Tagged Questions
2
votes
4answers
462 views
“Lock” one specific file so that I nor root no longer have access to it any more
To combat procrastination, I edit my /etc/hosts file by adding time-wasting websites and pointing them to localhost. However, the flesh is weak and I often find myself reverting my changes.
I was ...
6
votes
1answer
1k views
Default permission of hosts file
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?