mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Create home dir for adduser function
This commit is contained in:
@@ -79,7 +79,7 @@ so_add_user() {
|
|||||||
|
|
||||||
echo "Add $username user" >> "$setup_log" 2>&1
|
echo "Add $username user" >> "$setup_log" 2>&1
|
||||||
groupadd --gid "$gid" "$username"
|
groupadd --gid "$gid" "$username"
|
||||||
useradd --uid "$uid" --gid "$gid" --home-dir "$home_dir" "$username"
|
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