diff --git a/Base/etc/group b/Base/etc/group index ac450806e32..07e4f4b8a45 100644 --- a/Base/etc/group +++ b/Base/etc/group @@ -1,3 +1,4 @@ root:x:0: wheel:x:1:anon +tty:x:2: users:x:100:anon diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh index 1c5f1dc2679..ef9aca24414 100755 --- a/Kernel/build-root-filesystem.sh +++ b/Kernel/build-root-filesystem.sh @@ -34,6 +34,10 @@ mknod mnt/dev/ttyS0 c 4 64 mknod mnt/dev/ttyS1 c 4 65 mknod mnt/dev/ttyS2 c 4 66 mknod mnt/dev/ttyS3 c 4 67 +for tty in 0 1 2 3 S0 S1 S2 S3; do + chmod 620 mnt/dev/tty$tty + chown 0:2 mnt/dev/tty$tty +done mknod mnt/dev/random c 1 8 mknod mnt/dev/null c 1 3 mknod mnt/dev/zero c 1 5