ref: 8a0a5128be9870261845756ad9b924a613829f7b
parent: ddf993570ac55a371f5d1fe724eaaa43180bfeed
author: Michael Forney <mforney@mforney.org>
date: Tue Apr 4 14:17:58 EDT 2023
ream: change initial owner of / to adm with 775 mode This matches cwfs and hjfs.
--- a/ream.c
+++ b/ream.c
@@ -17,14 +17,14 @@
/* nb: values must be inserted in key order */
memset(&d, 0, sizeof(Xdir));
d.qid = (Qid){fs->nextqid++, 0, QTDIR};
- d.mode = DMDIR|0755;
+ d.mode = DMDIR|0775;
d.atime = 0;
d.mtime = 0;
d.length = 0;
d.name = "";
- d.uid = 2;
- d.gid = 2;
- d.muid = 2;
+ d.uid = -1;
+ d.gid = -1;
+ d.muid = 0;
if(dir2kv(-1, &d, &kv, vbuf, sizeof(vbuf)) == -1)
sysfatal("ream: pack root: %r");
setval(r, &kv);
--- a/user.c
+++ b/user.c
@@ -7,7 +7,7 @@
#include "fns.h"
char *defaultusers =
- "-1:adm::\n"
+ "-1:adm::glenda\n"
"0:none::\n"
"1:tor:tor:\n"
"2:glenda:glenda:\n"