用户登录-bash-4.2的问题
cat /etc/passwd
postgres:x:26:26:PostgreSQL Server:/var/lib/pgsql:/bin/bash
解决办法:
mkdir /home/postgres
cp /etc/skel/.bashrc /home/postgres
cp /etc/skel/.bash_logout /home/postgres
cp /etc/skel/.bash_profile /home/postgres
usermod -d /home/postgres postgres /这里是uid,不是username
转自: https://912616.com/jiaocheng/301.html
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29699285/viewspace-2724665/ ,如需转载,请注明出处,否则将追究法律责任。