用户登录-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