redhat切换用户前面是-bash-4.1$v
2014-08-09 22:27
211 查看
使用root用户切换到普通用户时,提示如下命令行
[root@Lee ~]# su - oracle
-bash-4.1$
前面不是oracle@Lee...
而是-bash-4.1$
只需要
cd/etc/skel
cp .bash_logout .bash_profile .bashrc /home/oracle
[root@Lee ~]# cd /etc/skel/
[root@Lee skel]# cp .bash_logout .bash_profile .bashrc /home/oracle/
[root@Lee ~]# su - oracle
[oracle@Lee ~]$
[root@Lee ~]# su - oracle
-bash-4.1$
前面不是oracle@Lee...
而是-bash-4.1$
只需要
cd/etc/skel
cp .bash_logout .bash_profile .bashrc /home/oracle
[root@Lee ~]# cd /etc/skel/
[root@Lee skel]# cp .bash_logout .bash_profile .bashrc /home/oracle/
[root@Lee ~]# su - oracle
[oracle@Lee ~]$
相关文章推荐
- linux切换到用户后,前面是bash-4.1$
- linux 切换用户之后变成-bash-3.2$ :
- 1.3.2 企业案例 切换到alex用户之后企业故障案例:切换到alex用户之后 出现 -bash-4.1$ 错误
- [Linux]RedHat创建新用户的时候没有产生".bash_profile"
- [Linux]RedHat创建新用户的时候没有产生".bash_profile"
- 在Linux中切换用户时变成-bash-4.3$
- linux 切换用户之后变成-bash-3.2$
- linux 切换用户之后变成-bash-3.2$
- linux切换用户提示bash-4.1$
- 30. linux用su oracle 切换用户报“连接数据库报-bash-4.1$”处理方式
- linux 切换用户之后变成 -bash-3.2$ :
- linux切换oracle用户报错-bash-4.1$ 解决办法
- linux 切换用户之后变成-bash-3.2$的解决方法
- linux 切换用户出现 -bash-4.1$
- centos 切换用户显示bash-4.2$,不显示用户名路径的问题
- CentOS 7切换到root用户-bash-4.3#问题及解决办法!
- linux新建用户切换后显示-bash-4.1$
- linux下切换到oracle用户时出现了-bash-3.2$ 密码登录错误以及sqlplus不可用
- linux新建用户切换后显示-bash-4.1$
- su切换用户出现-bash: fork: Resource temporarily unavailable