Previous page

Next page

Locate page in Contents

Print this page

Setting Immutable and Append Flags for Container Files and Directories

You can use standard Linux utilities - chattr and lsattr - to set extra flags for files and directories inside your Containers and to query their status, respectively. Currently, two of these extra flags - 'append' and 'immutable' - are supported. For example, you can execute the following command to set the 'immutable' flag for the /root/MyFile file inside Container 101:

[root@ct101 root] chattr +i /root/MyFile

To check that the 'immutable' flag has been successfully set, use the following command:

[root@ct101 root] lsattr /root/MyFile

----i-------- /root/MyFile

Note: For detailed information on the chattr and lsattr utilities, see their manual pages.