permissions of /etc/resolv.conf are wrong
Bug #437647 reported by
Omer Akram
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-moblin-remix |
Fix Released
|
High
|
Bill Filler |
Bug Description
cannot use any application that use internet on the daily cd of 27th September unless run the app from terminal using sudo. nor can i ping without sudo.
as a work around
sudo chown username /etc/resolv.conf
summary: |
- cannot use any internet application unless run it from terminal using - sudo + permissions of /etc/resolv.conf are wrong |
To post a comment you must log in.
This is strange. src/resolver.conf correct sets the permissions on resolv.conf via the call: etc/resolv. conf", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
fd = open("/
This should make the file RW for owner, and R for everyone else. However the actual permissions on the file are RW owner only.
Maybe it has something to do with ext4?
Anyway, the workaround was to add: resolv. conf", S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH );
chmod ("/etc/
after the open, and this seems to do the trick and set the correct permissions.
Pushed connman_ 0.42-0ubuntu1~ moblin4 to PPA