Change Permissions on Password files so no one can change them

terminal-glossy.jpg

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

Leave a Reply

You must be logged in to post a comment.