Hi everyone
I study FreeBD and got to the flags lesson.
The sappend flag should only allow adding content and not be deleted or changed.
I can’t edit it, I can add something to it - it works correctly.
But I can also safely delete it through rm or move it through mv.
What did I misunderstand in the description of the flag, or is it broken?
Thx Thanks for answer
I study FreeBD and got to the flags lesson.
The sappend flag should only allow adding content and not be deleted or changed.
I can’t edit it, I can add something to it - it works correctly.
But I can also safely delete it through rm or move it through mv.
What did I misunderstand in the description of the flag, or is it broken?
Code:
# sysctl kern.securelevel
kern.securelevel: 3
# uname -a
FreeBSD test 12.1-RELEASE-p2 FreeBSD 12.1-RELEASE-p2 GENERIC amd64
# id
uid=0(root) gid=0(wheel) groups=0(wheel),5(operator)
# ls -alo
-rw-r--r-- 1 root wheel sappnd,uarch 4 Mar 3 13:22 sappend
-rw-r--r-- 1 root wheel schg,uarch 12 Mar 3 12:51 schg
-rw-r--r-- 1 root wheel sunlnk,uarch 4 Mar 3 12:57 sunlnk
# rm sappend
override rw-r--r-- root/wheel sappnd,uarch for sappend? y
# ls -alo
-rw-r--r-- 1 root wheel schg,uarch 12 Mar 3 12:51 schg
-rw-r--r-- 1 root wheel sunlnk,uarch 4 Mar 3 12:57 sunlnk