summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-06 16:10:27 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-06 16:10:27 +0200
commitdcd47655d0a970daaf336a343dca1863e2389b40 (patch)
treefed2f91f0485406d9177575361eb90738888102b /Base
parent35b844ba4c8aa940444ed7b013462520e57b0f05 (diff)
downloadserenity-dcd47655d0a970daaf336a343dca1863e2389b40.zip
utmpupdate: Add a program for updating /var/run/utmp
To keep track of ongoing terminal sessions, we now have a sort-of traditional /var/run/utmp file, like other Unix systems. Unlike other Unix systems however, ours is of course JSON. :^) The /bin/utmpupdate program is used to update the file, which is not writable by regular user accounts. This helper program is set-GID "utmp".
Diffstat (limited to 'Base')
-rw-r--r--Base/etc/fstab1
-rw-r--r--Base/etc/group1
2 files changed, 2 insertions, 0 deletions
diff --git a/Base/etc/fstab b/Base/etc/fstab
index 5e1598326c..4cff6ee8a6 100644
--- a/Base/etc/fstab
+++ b/Base/etc/fstab
@@ -7,6 +7,7 @@
/etc /etc bind bind,nodev,nosuid
/home /home bind bind,nodev,nosuid
/root /root bind bind,nodev,nosuid
+/var /var bind bind,nodev,nosuid
none /proc proc nosuid
none /dev/pts devpts noexec,nosuid,ro
diff --git a/Base/etc/group b/Base/etc/group
index 374eeca8aa..55b63e71eb 100644
--- a/Base/etc/group
+++ b/Base/etc/group
@@ -3,6 +3,7 @@ wheel:x:1:anon
tty:x:2:
phys:x:3:window,anon
audio:x:4:anon
+utmp:x:5:
lookup:x:10:protocol,anon
protocol:x:11:webcontent,anon
notify:x:12:anon