ITPub博客

首页 > 数据库 > PostgreSQL > 安装postgresql创建的用户bash-4.2的问题

安装postgresql创建的用户bash-4.2的问题

原创 PostgreSQL 作者:cms5 时间:2020-09-28 09:37:34 0 删除 编辑

用户登录-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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-06-09

  • 博文量
    8
  • 访问量
    78272