Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Change the default shell of the "toor" user to /rescue/sh



details:   https://anonhg.NetBSD.org/src/rev/59c83dd8d46f
branches:  trunk
changeset: 988646:59c83dd8d46f
user:      nia <nia%NetBSD.org@localhost>
date:      Fri Oct 08 18:02:57 2021 +0000

description:
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.

diffstat:

 etc/master.passwd |  2 +-
 etc/shells        |  3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diffs (24 lines):

diff -r 68fe53015857 -r 59c83dd8d46f etc/master.passwd
--- a/etc/master.passwd Fri Oct 08 17:56:12 2021 +0000
+++ b/etc/master.passwd Fri Oct 08 18:02:57 2021 +0000
@@ -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
diff -r 68fe53015857 -r 59c83dd8d46f etc/shells
--- a/etc/shells        Fri Oct 08 17:56:12 2021 +0000
+++ b/etc/shells        Fri Oct 08 18:02:57 2021 +0000
@@ -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



Home | Main Index | Thread Index | Old Index