From 68081e32bccab743c4962c5ca40d1acef554a858 Mon Sep 17 00:00:00 2001 From: julian Date: Mon, 2 Jun 1997 06:24:52 +0000 Subject: Submitted by: Whistle Communications (archie Cobbs) These changes add the ability to specify that a UFS file/directory cannot be unlinked. This is basically a scaled back version of the IMMUTABLE flag. The reason is to allow an administrator to create a directory hierarchy that a group of users can arbitrarily add/delete files from, but that the hierarchy itself is safe from removal by them. If the NOUNLINK definition is set to 0 then this results in no change to what happens normally. (and results in identical binary (in the kernel)). It can be proven that if this bit is never set by the admin, no new behaviour is introduced.. Several "good idea" comments from reviewers plus one grumble about creeping featurism. This code is in production in 2.2 based systems --- bin/chflags/chflags.1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bin/chflags/chflags.1') diff --git a/bin/chflags/chflags.1 b/bin/chflags/chflags.1 index 9c808a0..9ab880f 100644 --- a/bin/chflags/chflags.1 +++ b/bin/chflags/chflags.1 @@ -83,9 +83,12 @@ arch set the archived flag (super-user only) dump set the dump flag sappnd set the system append-only flag (super-user only) schg set the system immutable flag (super-user only) +sunlnk set the system undeletable flag (super-user only) uappnd set the user append-only flag (owner or super-user only) uchg set the user immutable flag (owner or super-user only) -archived, sappend, schange, simmutable, uappend, uchange, uimmutable +uunlnk set the user undeletable flag (owner or super-user only) +archived, sappend, schange, simmutable, uappend, uchange, uimmutable, +sunlink, uunlink aliases for the above .Ed .Pp -- cgit v1.1