Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
467 views

I am unable to access or write to etc/hosts file

I am attempting to edit theetc/hosts file. I am able to access it through the graphic file system to find that it is read only. When using sudo nano etc/hosts as many suggest, I see that the directory ...
hysiminai's user avatar
0 votes
2 answers
2k views

ubuntu unable to resolve host

I'm working on ubuntu 14.04. I cant login to my pc as a root user.I tried different ways and i cant still the issue. If i give sudo command the response is like > ubuntu@ubuntu72:~$ sudo su sudo: ...
crackhead.h's user avatar
7 votes
4 answers
14k 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 ...
BioGeek's user avatar
  • 411
11 votes
1 answer
12k 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?
Ashfame's user avatar
  • 3,264