关于sudo与cd的
来源:互联网 发布:自动化设备编程难点 编辑:程序博客网 时间:2024/05/17 03:52
http://askubuntu.com/questions/57789/how-to-enter-to-the-directory-with-cd-command-if-it-has-700-permission
sudo cd
won't work because the cd
command is built into the shell. So you are saying become root and then run this command. You become root and then the command after sudo is searched for but there is nocd
command to find.
The method to use is to switch to the user that owns the directory. Permission700
is meant as "owner can read, write and execute".
So if root owns the directory sudo su
, password and then cd {dir}
is the only correct method. If someone else owns the directory you can still use the 1st method but can also change to that user withsu {username}
and then use cd
as that user.
- 关于sudo与cd的
- 关于linux的sudo权限与wheel组
- sudo cd command not found
- sudo: cd: command not found
- sudo: cd: command not found
- sudo: cd: command not found
- %cd%与%~dp0的区别
- su与sudo的区别
- su与sudo的使用
- su 与 sudo的区别
- su与sudo的区别
- su与sudo的区别
- sudo与su的区别
- 关于sudo
- 关于sudo
- 关于sudo
- 关于把cd转成mp3的文章
- 关于cd命令的一些注意
- 获取快递的API
- union类型
- Oracle查询重复数据与删除重复记录方法
- android性能调试优化
- 记事本
- 关于sudo与cd的
- 简单工厂模式
- hadoop的Jobid
- Hibernate(分组查询等续)
- 检查链表是否有环?
- Oracle报错:"ORA-18008: 无法找到 OUTLN 方案 "的解决方案
- Servlet编程技术
- 是否应该将表和索引建立在不同的表空间上?
- hadopp核心革新