Applying Immutability to a ZFS File

Use the following syntax to make a file immutable:

$ chmod S+ci file.1
$ echo this >>file.1
-bash: file.1: Insufficient privileges
$ rm file.1
rm: cannot remove `file.1': Insufficient privileges

You can display special attributes on ZFS files by using the following syntax:

$ ls -l/c file.1
-rw-r--r--+  1 root     root      206695 Jul 20 14:27 file.1
{A-----im----}

Use the following syntax to remove file immutability:

$ chmod S-ci file.1
$ ls -l/c file.1
-rw-r--r--+  1 root     root      206695 Jul 20 14:27 file.1
{A------m----}
$ rm file.1