This commit is contained in:
luk.lu
2022-06-17 12:32:53 +08:00
parent 553310cf5b
commit 39b54a54c3
5 changed files with 9 additions and 5 deletions

View File

@@ -34,6 +34,10 @@ chmod a-w /etc/sudoers.d/${NewUser//./-}
echo
# 注意,在这里为新用户创建的配置文件,主人是 root而不是新用户
echo "<<< Configure $NewUser home"
echo "<<< Configure $NewUser home with standard scripts? (注意,由 root 为新用户创建的配置文件的 owner 是 root而不是新用户)"
read -p "y for yes, anything else for no >> " YesOrNo
if [ $YesOrNo = 'y' ]
then
source /faronear/fon/sysconfig/home-config.sh /faronear/fon/sysconfig/nixhome /home/$NewUser
echo
fi