Wednesday, 4 October 2017

How to Lock the File in UNIX


FILE Locking in UNIX



LOCK THAT FILE DOWN

Sometimes you want to make a file very very secure.

To do this, change the permissions to 000





# chmod 000 [file]

No one except root will be able to access it.
Even the owner will have to change the
permissions to be able to do anything to it.


Although It's like a red flag that says.. "I'm an important file"





NOTE: DO NOT EVER DO THIS TO THE /etc/passwd FILE!

No comments:

Post a Comment