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
This commit is contained in:
Ian Dowse 2003-10-19 21:49:44 +00:00
parent 9132d5071c
commit d6ad008082
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121258

View File

@ -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, ""