mkdir -pv /app/{software,service,midware,backups,data,logs,temp}
useradd -r app && chown app:app -R /app && chmod 755 -R /app
切换到新创建的用户,显示 bash-4.2$,且无法正常使用命令
mkdir /home/app
cp /etc/skel/.bash_logout /home/app
cp /etc/skel/.bash_profile /home/app
cp /etc/skel/.bashrc /home/app
chown app:app -R /home/app