Change Permissions on Password files so no one can change them

The following changes following file permissions, so that nobody can change the account privileges:

chattr +i /etc/passwd
chattr +i /etc/shadow
chattr +i /etc/group
chattr +i /etc/gshadow

See here for further details of the chattr command

Related Posts

Tags:

Leave a Reply

You must be logged in to post a comment.