From ad91dc7ffbfb14ba0ff07f59c20ead93bd106c35 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 5 Aug 2015 13:06:11 +0200 Subject: cwfs: set permission of / to 0775 on ream this allows members of the -1 group to create new directories in / without having to fiddle with the fileserver console. this also makes it consistent to hjfs. --- sys/src/cmd/cwfs/sub.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/src/cmd/cwfs/sub.c') diff --git a/sys/src/cmd/cwfs/sub.c b/sys/src/cmd/cwfs/sub.c index c64f77c10..0c19949a0 100644 --- a/sys/src/cmd/cwfs/sub.c +++ b/sys/src/cmd/cwfs/sub.c @@ -721,10 +721,7 @@ rootream(Device *dev, Off addr) strcpy(d->name, "/"); d->uid = -1; d->gid = -1; - d->mode = DALLOC | DDIR | - ((DREAD|DEXEC) << 6) | - ((DREAD|DEXEC) << 3) | - ((DREAD|DEXEC) << 0); + d->mode = DALLOC | DDIR | 0775; d->qid = QID9P1(QPROOT|QPDIR,0); d->atime = time(nil); d->mtime = d->atime; -- cgit v1.2.3