This commit is contained in:
2021-10-19 16:36:21 -04:00
parent 8dbb3d0bb3
commit 64f6c11503
8 changed files with 448 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# Remove a user from the Hartman Lab server
# Remove a user from the server
# Copyright 2021 Bryan C. Roessler
[[ -f functions ]] && . functions || exit 1
@@ -28,4 +28,6 @@ userdel -fr "$user"
sed -i "/$user/d" /etc/subuid
sed -i "/$user/d" /etc/subgid
smbpasswd -x "$user"
exit $?