linux 切换用户之后变成 -bash-3.2$ :
2013-12-04 14:40
507 查看
今天新创建一个DB2用户,切换用户的时候出现 -bash-3.2$ : 下面是创建步骤:
1)新建用户db2inst3
[root@DB ~]# cd /home/
[root@DB home]# ls
dasusr1 db2fenc1 db2fenc2 db2inst1 db2inst2
[root@DB home]# mkdir db2fenc3
[root@DB home]# useradd -u 1104 -g db2iadm1 -m -d /home/db2fenc3 db2fenc3 -p password
[root@DB home]# cd db2fenc3
[root@DB db2fenc3]# ls
[root@DB db2fenc3]# su - db2fenc3
-bash-3.2$ :
网上查了一下是缺少bash的环境配置
解决方法:
[root@DB db2fenc3]# cp -a /etc/skel/. /home/db2fenc3
上述问题解决。
2)新建用户db2inst3
[root@DB ~]# cd /home/
[root@DB home]# ls
dasusr1 db2fenc1 db2fenc2 db2fenc3 db2inst1 db2inst2
[root@DB home]# useradd -u 1105 -g db2iadm1 -m -d /home/db2inst3 db2inst3-p password
[root@DB home]# cd db2inst3
[root@DB db2inst3]# ls
Desktop
[root@DB db2inst3]# su - db2inst3
[db2inst3@DB ~]$
自己未手动创建用户的文件夹,未出现上述问题。
1)新建用户db2inst3
[root@DB ~]# cd /home/
[root@DB home]# ls
dasusr1 db2fenc1 db2fenc2 db2inst1 db2inst2
[root@DB home]# mkdir db2fenc3
[root@DB home]# useradd -u 1104 -g db2iadm1 -m -d /home/db2fenc3 db2fenc3 -p password
[root@DB home]# cd db2fenc3
[root@DB db2fenc3]# ls
[root@DB db2fenc3]# su - db2fenc3
-bash-3.2$ :
网上查了一下是缺少bash的环境配置
解决方法:
[root@DB db2fenc3]# cp -a /etc/skel/. /home/db2fenc3
上述问题解决。
2)新建用户db2inst3
[root@DB ~]# cd /home/
[root@DB home]# ls
dasusr1 db2fenc1 db2fenc2 db2fenc3 db2inst1 db2inst2
[root@DB home]# useradd -u 1105 -g db2iadm1 -m -d /home/db2inst3 db2inst3-p password
[root@DB home]# cd db2inst3
[root@DB db2inst3]# ls
Desktop
[root@DB db2inst3]# su - db2inst3
[db2inst3@DB ~]$
自己未手动创建用户的文件夹,未出现上述问题。
相关文章推荐
- linux 切换用户之后变成-bash-3.2$
- linux 切换用户之后变成-bash-3.2$ :
- linux 切换用户之后变成-bash-3.2$
- linux 切换用户之后变成-bash-3.2$的解决方法
- linux 切换用户之后变成-bash-3.2$ :
- linux 切换用户之后变成-bash-3.2$
- linux 切换用户之后变成-bash-x.x$的解决方法
- linux问题: 切换用户之后变成-bash-4.1$
- linux下切换到oracle用户时出现了-bash-3.2$ 密码登录错误以及sqlplus不可用
- 在Linux中切换用户时变成-bash-4.3$
- linux切换oracle用户报错-bash-4.1$ 解决办法
- linux学习入门2-3——bash命令基本操作(linuxcast.net)(bash部分快捷键、uname、history、通配符、切换用户、作业管理(前台、后台运行,暂停等操作))
- linux切换到用户后,前面是bash-4.1$
- linux添加用户切换后显示-bash4.1$的解决办法
- linux新建用户切换后显示-bash-4.1$
- linux 切换用户出现 -bash-4.1$
- Linux中切换用户变成-bash4.1-$的解决方法
- 解决linux命令行为什么变成-bash-3.2$
- 解决linux命令行变成-bash-3.2$(转)
- linux 服务器命令行变成-bash-3.2$: