diff --git a/shadow-utils-config/debian/deb_folder/postinst b/shadow-utils-config/debian/deb_folder/postinst index dfc9bab..093c6da 100644 --- a/shadow-utils-config/debian/deb_folder/postinst +++ b/shadow-utils-config/debian/deb_folder/postinst @@ -3,5 +3,6 @@ set -e cp /usr/share/starlingx/login.defs /etc/login.defs +cp /usr/share/starlingx/useradd /etc/default/useradd #DEBHELPER# diff --git a/shadow-utils-config/debian/deb_folder/shadow-utils-config.install b/shadow-utils-config/debian/deb_folder/shadow-utils-config.install index 5c66441..137bd78 100644 --- a/shadow-utils-config/debian/deb_folder/shadow-utils-config.install +++ b/shadow-utils-config/debian/deb_folder/shadow-utils-config.install @@ -1,2 +1,3 @@ clear_shadow_locks.service usr/lib/systemd/system login.defs usr/share/starlingx +useradd usr/share/starlingx diff --git a/shadow-utils-config/source-debian/login.defs b/shadow-utils-config/source-debian/login.defs index 9d51ba9..0ecce4a 100644 --- a/shadow-utils-config/source-debian/login.defs +++ b/shadow-utils-config/source-debian/login.defs @@ -199,8 +199,8 @@ UMASK 022 # PASS_MIN_LEN Minimum acceptable password length. # PASS_WARN_AGE Number of days warning given before a password expires. # -PASS_MAX_DAYS 99999 -PASS_MIN_DAYS 0 +PASS_MAX_DAYS 90 +PASS_MIN_DAYS 1 #PASS_MIN_LEN 5 PASS_WARN_AGE 7 @@ -308,7 +308,7 @@ CHFN_RESTRICT rwh # Note: If you use PAM, it is recommended to use a value consistent with # the PAM modules configuration. # -#ENCRYPT_METHOD DES +ENCRYPT_METHOD SHA512 # # Only works if ENCRYPT_METHOD is set to SHA256 or SHA512. diff --git a/shadow-utils-config/source-debian/useradd b/shadow-utils-config/source-debian/useradd new file mode 100644 index 0000000..98479b4 --- /dev/null +++ b/shadow-utils-config/source-debian/useradd @@ -0,0 +1,36 @@ +# Default values for useradd(8) +# +# The SHELL variable specifies the default login shell on your +# system. +# Similar to DSHELL in adduser. However, we use "sh" here because +# useradd is a low level utility and should be as general +# as possible +SHELL=/bin/sh +# +# The default group for users +# 100=users on Debian systems +# Same as USERS_GID in adduser +# This argument is used when the -n flag is specified. +# The default behavior (when -n and -g are not specified) is to create a +# primary user group with the same name as the user being added to the +# system. +# GROUP=100 +# +# The default home directory. Same as DHOME for adduser +# HOME=/home +# +# The number of days after a password expires until the account +# is permanently disabled +INACTIVE=45 +# +# The default expire date +# EXPIRE= +# +# The SKEL variable specifies the directory containing "skeletal" user +# files; in other words, files such as a sample .profile that will be +# copied to the new user's home directory when it is created. +# SKEL=/etc/skel +# +# Defines whether the mail spool should be created while +# creating the account +# CREATE_MAIL_SPOOL=yes