Module Name: src
Committed By: nia
Date: Fri Oct 8 18:02:57 UTC 2021
Modified Files:
src/etc: master.passwd shells
Log Message:
Change the default shell of the "toor" user to /rescue/sh
toor is a backup account to be used in case of trouble.
When root's default shell was changed to from /bin/csh to /bin/sh,
toor lost its purpose.
/rescue/sh is an ideal choice here because it's a static binary,
while we've moved to dynamic linking for the rest of the system.
Discussed a few times over the years on tech-userlevel.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/etc/master.passwd
cvs rdiff -u -r1.3 -r1.4 src/etc/shells
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/master.passwd
diff -u src/etc/master.passwd:1.51 src/etc/master.passwd:1.52
--- src/etc/master.passwd:1.51 Thu Apr 2 12:35:13 2020
+++ src/etc/master.passwd Fri Oct 8 18:02:57 2021
@@ -1,5 +1,5 @@
root::0:0::0:0:Charlie &:/root:/bin/sh
-toor:*:0:0::0:0:Bourne-again Superuser:/root:/bin/sh
+toor:*:0:0::0:0:Bourne-again Superuser:/root:/rescue/sh
daemon:*:1:1::0:0:The devil himself:/:/sbin/nologin
operator:*:2:5::0:0:System &:/usr/guest/operator:/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/sbin/nologin
Index: src/etc/shells
diff -u src/etc/shells:1.3 src/etc/shells:1.4
--- src/etc/shells:1.3 Sun Dec 29 03:23:07 1996
+++ src/etc/shells Fri Oct 8 18:02:57 2021
@@ -1,4 +1,4 @@
-# $NetBSD: shells,v 1.3 1996/12/29 03:23:07 mrg Exp $
+# $NetBSD: shells,v 1.4 2021/10/08 18:02:57 nia Exp $
#
# List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using
@@ -7,3 +7,4 @@
/bin/sh
/bin/csh
/bin/ksh
+/rescue/sh