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

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

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

Postby 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: 12
Joined: 2015/01/26 22:14:59

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

Postby ant2ne » 2017/04/19 18:12:22

try

ESC

:wq!

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

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

Postby gerald_clark » 2017/04/19 20:28:46

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


Return to “CentOS 6 - Security Support”

Who is online

Users browsing this forum: No registered users and 1 guest