Write operations being performed on file with read-only access
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Write operations being performed on file with read-only access
Hi,
I'm having this problem wherein the ppp program is altering the /etc/resolv.conf file when connecting.This, despite me having set file permissions to read-only. What could be the problem here? Please advise.
I'm using the pon script that comes along with ppp (I use pon <peer-name> to connect). Now, this isn't the ppp package that comes packaged with Slack. I've compiled it (although the same version).
Last edited by corbis_demon; 08-25-2010 at 03:40 AM.
'chattr +i /etc/resolv.conf' makes the file immutable. As a side effect this may cause an application to show an error message saying that can't write to the file.
I read the man page for chattr and lsattr, and found it's supposed to work on ext2 & ext3 filesystems. I, on the other hand, run reiser. What do I need to do?
Either 0) change file systems ;-p or 1) try to live with this "feature" or 2) find out which applications write to /etc/resolv.conf, disable any DNS-related options in their configs and see if it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.