From 8e6c50f91871e3bc79d7a6bb3db5d7e9cb2d13f0 Mon Sep 17 00:00:00 2001 From: iedowse Date: Sun, 19 Oct 2003 21:49:44 +0000 Subject: Change the default mode for lost+found from 01777 to 0700. The original intention of the less restrictive permissions was to allow users to move or delete recovered files that they own. However, it is better to not create world-writable directories by default; the administrator can always pre-create lost+found if different permissions are desired. Reviewed by: mckusick --- sbin/fsck_ffs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sbin/fsck_ffs') diff --git a/sbin/fsck_ffs/dir.c b/sbin/fsck_ffs/dir.c index 47e2bb4..5a91874 100644 --- a/sbin/fsck_ffs/dir.c +++ b/sbin/fsck_ffs/dir.c @@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$"); #include "fsck.h" const char *lfname = "lost+found"; -int lfmode = 01777; +int lfmode = 0700; struct dirtemplate emptydir = { 0, DIRBLKSIZ, DT_UNKNOWN, 0, "", 0, 0, DT_UNKNOWN, 0, "" -- cgit v1.1