linux 下切換到oracle使用者報許可權不夠問題解決方法

paulyibinyi發表於2010-10-28

[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

成功,切換沒有問題

 

 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7199859/viewspace-677003/,如需轉載,請註明出處,否則將追究法律責任。

相關文章