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.
This commit is contained in:
nia 2021-10-08 18:02:57 +00:00
parent 5540b66491
commit 2da9f9a665
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
root::0:0::0:0:Charlie &:/root:/bin/sh 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 daemon:*:1:1::0:0:The devil himself:/:/sbin/nologin
operator:*:2:5::0:0:System &:/usr/guest/operator:/sbin/nologin operator:*:2:5::0:0:System &:/usr/guest/operator:/sbin/nologin
bin:*:3:7::0:0:Binaries Commands and Source:/:/sbin/nologin bin:*:3:7::0:0:Binaries Commands and Source:/:/sbin/nologin

View File

@ -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). # List of acceptable shells for chpass(1).
# Ftpd will not allow users to connect who are not using # Ftpd will not allow users to connect who are not using
@ -7,3 +7,4 @@
/bin/sh /bin/sh
/bin/csh /bin/csh
/bin/ksh /bin/ksh
/rescue/sh