Skip to content

Commit

Permalink
Exclude firebird user from destruction
Browse files Browse the repository at this point in the history
This user apparently has ~ set to /, and userdel fails.

No idea what this is. firebird -h reports "Firebird TCP/IP server
options are:".
  • Loading branch information
strugee committed Oct 10, 2024
1 parent 5bb6fa2 commit e56bd5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sbin/seagl-reset-users
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e56bd5c

Please sign in to comment.