So, as you see now our secret file has some more content. Looks like it worked as expected, verify the same ~]# cat /tmp/deepak/secret_file Next try to append some data to this file ~]# echo "I am appending some more content" > /tmp/deepak/secret_file ![]() ~]# chattr +a /tmp/deepak/secret_fileĬheck the assigned attributes and as you see now we have " a" also assigned to our secret_file ~]# lsattr /tmp/deepak/ Now we will use " +a" to allow root user to append some data to our secret file but root won't be allowed to overwrite the file. Restrict access and allow only to append content ![]() these files support extended attributes ~]# lsattr /tmp/ 7 ways to prevent brute force SSH attacks in Linux (CentOS/RHEL 7)īy default when we create a file or directory, it does not has any extended attributes other than "e" which means extent format i.e.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |