Get rid of the (insulting)
We recommend that you create a non-root account... message from single user mode shell startups.
This commit is contained in:
parent
bd7c53a85d
commit
d8eb9e45f2
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: dot.profile,v 1.33 2022/07/09 09:43:51 kre Exp $
|
# $NetBSD: dot.profile,v 1.34 2022/07/21 07:51:12 kre Exp $
|
||||||
|
|
||||||
case "${PATH}" in
|
case "${PATH}" in
|
||||||
/rescue:*) ;; # leave it alone, user can change manually (if required)
|
/rescue:*) ;; # leave it alone, user can change manually (if required)
|
||||||
|
@ -21,6 +21,6 @@ umask 022
|
||||||
export ENV=/root/.shrc
|
export ENV=/root/.shrc
|
||||||
|
|
||||||
# Do not display in 'su -' case
|
# Do not display in 'su -' case
|
||||||
if [ -z "$SU_FROM" ]; then
|
if [ -z "$SU_FROM" ] && [ "$PPID" -ne 1 ]; then
|
||||||
echo "We recommend that you create a non-root account and use su(1) for root access."
|
echo "We recommend that you create a non-root account and use su(1) for root access."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue