From e56bd5c7098af3a6104f270e3b596f4d68805d99 Mon Sep 17 00:00:00 2001 From: AJ Jordan Date: Thu, 10 Oct 2024 13:06:40 -0400 Subject: [PATCH] Exclude firebird user from destruction This user apparently has ~ set to /, and userdel fails. No idea what this is. firebird -h reports "Firebird TCP/IP server options are:". --- sbin/seagl-reset-users | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/seagl-reset-users b/sbin/seagl-reset-users index fc075d4..72405ea 100755 --- a/sbin/seagl-reset-users +++ b/sbin/seagl-reset-users @@ -7,8 +7,8 @@ if ! [ $(id -u) == 0 ]; then exit 1 fi -# Delete all existing users except root -grep -v '^root' /etc/passwd | cut -d: -f1 | xargs -n 1 userdel -f -r +# Delete all existing users except root (and firebird?? TODO what is this????) +grep -ve '^root' -e '^firebird' /etc/passwd | cut -d: -f1 | xargs -n 1 userdel -f -r # Password hash corresponds to `password` adduser seagloperator -mp '$y$j9T$emVbho1jsDyzxlJVlATJU.$GYps0oI9FuW.WC3KCXZQkRDq8zGV0gjDIuJLAK1mtP8'