/etc/security/limits.conf with 644, but prompts "readonly"
Posted: 2017/03/22 02:27:14
The right of /etc/security/limits.conf is 644
When i use python:
>>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.
When i use python:
>>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.