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

Support for security such as Firewalls and securing linux
Post Reply
bale836
Posts: 1
Joined: 2017/03/22 01:50:35

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

Post by bale836 » 2017/03/22 02:27:14

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.

ant2ne
Posts: 23
Joined: 2015/01/26 22:14:59

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

Post by ant2ne » 2017/04/19 18:12:22

try

ESC

:wq!

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

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

Post by gerald_clark » 2017/04/19 20:28:46

The dot at the end of the permissions means there are extended attributes set.

Post Reply