mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix so_user shennanigans
This commit is contained in:
@@ -2331,8 +2331,8 @@ so_add_user() {
|
|||||||
if [ "$5" ]; then local pass=$5; fi
|
if [ "$5" ]; then local pass=$5; fi
|
||||||
|
|
||||||
info "Add $username user"
|
info "Add $username user"
|
||||||
logCmd "groupadd --gid '$gid' '$username'"
|
logCmd "groupadd --gid $gid $username"
|
||||||
logCmd "useradd -m --uid '$uid' --gid '$gid' --home-dir '$home_dir' '$username'"
|
logCmd "useradd -m --uid $uid --gid $gid --home-dir $home_dir $username"
|
||||||
|
|
||||||
# If a password has been passed in, set the password
|
# If a password has been passed in, set the password
|
||||||
if [ "$pass" ]; then
|
if [ "$pass" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user