linux操作系统下切换到oracle用户报权限不够问题解决方法
[root@oraclebi trace]# more /etc/redhat-release
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
[root@oraclebi trace]# uname -a
Linux oraclebi 2.6.18-53.11AXS3 #1 SMP Tue Aug 19 20:58:04 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
[root@oraclebi trace]# su - oracle
su: warning: cannot change directory to /home/oracle: Permission denied
su: /bin/bash: Permission denied
[root@oraclebi trace]# su - oratest
su: warning: cannot change directory to /home/oratest: Permission denied
su: /bin/bash: Permission denied
[root@oraclebi trace]# su - oraclebi
su: warning: cannot change directory to /home/oraclebi: Permission denied
su: /bin/bash: Permission denied
[root@oraclebi trace]#
[root@oraclebi trace]# useradd ora1 --新建用户也不行
[root@oraclebi trace]# su - ora1
su: warning: cannot change directory to /home/ora1: Permission denied
su: /bin/bash: Permission denied
[root@oraclebi trace]#
利用stat /
查看权限显示为0750,
而正常的应该是0755
通过chmod 755 / 命令修改后
su - oracle
成功,切换没有问题