Page 1 of 1

/etc/security/limits.conf with 644, but prompts "readonly"

Posted: 2017/03/22 02:27:14
by bale836
The right of /etc/security/limits.conf is 644

When i use python:
Image

>>import os;
>>os.access("/etc/security/limits.conf", os.W_OK);
False

The linux has disable the SELinux, i am confusion now.
And, when i vi this file, there is "[readonly]" at the bottom, others file with the same rights(644), there is not this prompt.
So i guess is certain security system keep this file readonly even with 644, it is bad i don't get it.

Re: /etc/security/limits.conf with 644, but prompts "readonly"

Posted: 2017/04/19 18:12:22
by ant2ne
try

ESC

:wq!

Re: /etc/security/limits.conf with 644, but prompts "readonly"

Posted: 2017/04/19 20:28:46
by gerald_clark
The dot at the end of the permissions means there are extended attributes set.