su: warning: cannot change directory to /home/oracle: Permission denied
来源:互联网 发布:淘宝烈士墙是什么意思 编辑:程序博客网 时间:2024/05/16 12:09
[root@localhost ~]# su - oracle
su: warning: cannot change directory to /home/oracle: Permission denied
解决方法:
[root@localhost ~]#stat /
输出如下:因为你ls是看不到的。
File: “/”
Size: 1024Blocks: 2 IO Block: 1024 目录
Device: 803h/2051dInode: 2 Links: 22
Access: (0666/drw-rw-rw-) Uid: (0/ root) Gid: (0/ root)
Access: 2007-12-01 22:28:48.000000000 +0800
Modify: 2007-12-01 22:28:34.000000000 +0800
Change: 2007-12-01 23:17:35.000000000 +0800
问题出来了,这里的权限是错误的,X权限的丢失造成的。
[root@localhost ~]#chmod 755 /
修改后,问题消失。
su: warning: cannot change directory to /home/oracle: Permission denied
解决方法:
[root@localhost ~]#stat /
输出如下:因为你ls是看不到的。
File: “/”
Size: 1024
Device: 803h/2051d
Access: (0666/drw-rw-rw-) Uid: (
Access: 2007-12-01 22:28:48.000000000 +0800
Modify: 2007-12-01 22:28:34.000000000 +0800
Change: 2007-12-01 23:17:35.000000000 +0800
问题出来了,这里的权限是错误的,X权限的丢失造成的。
[root@localhost ~]#chmod 755 /
修改后,问题消失。
from :http://blog.sina.com.cn/s/blog_98a8738901014ufr.html
- su: warning: cannot change directory to /home/oracle: Permission denied
- su: warning: cannot change directory to /home/mongodb: Permission denied
- 【su问题】su: warning: cannot change directory to /home/oracle: Permission denied
- su: warning: cannot change directory to : Permission denied ;-bash: bash_profile: Permission denied
- su: warning: cannot change directory to /home/mysql: No such file or directory
- Linux新建用户误删除进入时su: warning: cannot change directory to /home/grid: No such file or director
- Linux新建用户误删除进入时su: warning: cannot change directory to /home/xx: No such file or director
- man: can't change directory to '/root': Permission denied
- vsftpd 500 OOPS: cannot change directory:/home/oracle
- vsftp 500 OOPS: cannot change directory:/home/
- vsftp 500 OOPS: cannot change directory:/home/***
- 500 OOPS: cannot change directory:/home/user3
- vsftp 500 OOPS: cannot change directory:/home/
- 500 OOPS: cannot change directory:/home/lubinsu
- 500 OOPS: cannot change directory:/home/xxx”
- vsftpd 500 OOPS: cannot change directory:/home/***
- 500 OOPS:cannot change directory:/home/***
- vsftp提示cannot change directory:/home解决方案
- java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- HUD3790最短路径问题(SPFA实现)
- 通过分析SQL语句的执行计划优化SQL
- 软件自动化测试框架的发展
- Why do people use enums in C++ as constants while they can use const?
- su: warning: cannot change directory to /home/oracle: Permission denied
- VC6.0调试问题
- linux sysfs(4)
- session 设置登陆身份验证
- Qt UI Interfaces
- servlet知识详解
- 运用类模板实现不同类型的复数+,—,*,/
- 宏
- 反射应用