Hello,
I am reading the FreeBSD Handbook (Covers 13.2 and 14 Release) on Page 111, chflags is mentioned , I tried the chflags command under root user.
Requirement :
To let all the users who have write access on the file , to only be able to append the file but not delete the what has already been written to the file.
Output > Operation not permitted
chflags()
On reading the man pages it says "set the user append only flag"
And that some flags may be disable because of the kernel security level.
I checked mine
Output
-1
I read the
security()
-1 level is the insecure and the most relaxed level , also the default level.
I also checked the filesystem , it mentioned zfs.
What am I missing ? why am I not permitted.
My requirement of letting others only add to the file can this be achieved by the
If I set this on the ".odt" file , how will libreoffice or any other word processing software handle it ?
What are the possible use cases of such a flag in real world ? apart from "logs" file.
I am reading the FreeBSD Handbook (Covers 13.2 and 14 Release) on Page 111, chflags is mentioned , I tried the chflags command under root user.
Requirement :
To let all the users who have write access on the file , to only be able to append the file but not delete the what has already been written to the file.
chflags uappend secret.txt
Output > Operation not permitted
chflags()
On reading the man pages it says "set the user append only flag"
And that some flags may be disable because of the kernel security level.
I checked mine
sysctl kern.securelevel
Output
-1
I read the
security()
-1 level is the insecure and the most relaxed level , also the default level.
I also checked the filesystem , it mentioned zfs.
What am I missing ? why am I not permitted.
My requirement of letting others only add to the file can this be achieved by the
chflags uappend
?If I set this on the ".odt" file , how will libreoffice or any other word processing software handle it ?
What are the possible use cases of such a flag in real world ? apart from "logs" file.