permissions of /etc/resolv.conf are wrong

Bug #437647 reported by Omer Akram
6
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

Bill Filler (bfiller)
summary: - cannot use any internet application unless run it from terminal using
- sudo
+ permissions of /etc/resolv.conf are wrong
Revision history for this message
Bill Filler (bfiller) wrote :

This is strange. src/resolver.conf correct sets the permissions on resolv.conf via the call:
fd = open("/etc/resolv.conf", O_RDWR | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
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:
chmod ("/etc/resolv.conf", S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH );
after the open, and this seems to do the trick and set the correct permissions.

Pushed connman_0.42-0ubuntu1~moblin4 to PPA

Changed in ubuntu-moblin-remix:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → Bill Filler (bfiller)
Revision history for this message
Paul Larson (pwlars) wrote :

This is in the current image, and permissions on /etc/resolv.conf are correct now, so marking it fix released. However, web browser at least still does not seem to work.

Changed in ubuntu-moblin-remix:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.