From c2dea31ff0e3271f1d29a4f7d7e5c1367329c29e Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Tue, 31 Aug 2021 20:54:35 +0900 Subject: [PATCH] base: Add 'guest' user with no groups, not in sudoers --- base/etc/master.passwd | 1 + base/etc/passwd | 1 + base/home/guest/hello | 0 util/createramdisk.py | 1 + 4 files changed, 3 insertions(+) create mode 100644 base/home/guest/hello diff --git a/base/etc/master.passwd b/base/etc/master.passwd index f064c87e..7496724b 100644 --- a/base/etc/master.passwd +++ b/base/etc/master.passwd @@ -1,2 +1,3 @@ root:toor:0:0:Administrator:/home/root:/bin/sh:fancy local:local:1000:1000:Local User:/home/local:/bin/sh:fancy +guest:guest:1001:1001:Guest User:/home/guest:/bin/sh:fancy diff --git a/base/etc/passwd b/base/etc/passwd index ad8d0043..b1ca77c5 100644 --- a/base/etc/passwd +++ b/base/etc/passwd @@ -1,3 +1,4 @@ root:x:0:0:Administrator:/home/root:/bin/sh:fancy adm:x:1:1:Administrators:/tmp:/bin/false:nope local:x:1000:1000:Local User:/home/local:/bin/sh:fancy +guest:x:1001:1001:Guest User:/home/guest:/bin/sh:fancy diff --git a/base/home/guest/hello b/base/home/guest/hello new file mode 100644 index 00000000..e69de29b diff --git a/util/createramdisk.py b/util/createramdisk.py index 2b885fc2..fb4a553d 100644 --- a/util/createramdisk.py +++ b/util/createramdisk.py @@ -10,6 +10,7 @@ import tarfile users = { 'root': 0, 'local': 1000, + 'guest': 1001, } restricted_files = {