Add shell to new huhu mod users.
Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
parent
8259e05504
commit
6032e3984a
2 changed files with 2 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ fi
|
|||
user_home="${HUHU_HOME_BASE_DIR:-/home}/"$( echo "${user_name}" | sed 's#[-.]#/#g' )
|
||||
user_home_parent="${user_home%/*}"
|
||||
[ -d "${user_home_parent}" ] || mkdir -p "${user_home_parent}"
|
||||
useradd --home "${user_home}" --create-home --skel "${skel_dir}" "${user_name}"
|
||||
useradd --home "${user_home}" --shell /bin/bash --create-home --skel "${skel_dir}" "${user_name}"
|
||||
|
||||
user_home=$( awk -F: "/^${user_name}:/ { print \$6 }" /etc/passwd )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue