el capitan 绕过rootless
2015-10-08 14:05
267 查看
el capitan 绕过rootless
关于 rootless 相关操作,参见 /article/9880227.html
在 el capitan 增加了rootless,所谓rootless就是严格对os的一些系统目录做了限制,即使是sudo 也不能写
如何查看目录是否有限制?
ls -lO
-l (The lowercase letter ``ell''.) List in long format. (See
below.) If the output is to a terminal, a total sum for all the
file sizes is output on a line before the long listing.
-O Include the file flags in a long (-l) output.
cd /
ls -lO|grep restricted
如何绕过?
1. 关闭rootless, 参见 /article/9880227.html
2. 或者绕过这些目录,出于安全原因,我们还是尽量绕开目录
常用的 gem install 安装默认是安装到 /usr目录下
绕开
sudo gem install -n 二进制文件目录 文件名
如:
sudo gem install -n /usr/local/bin cocoapods
gem help install
关于 rootless 相关操作,参见 /article/9880227.html
在 el capitan 增加了rootless,所谓rootless就是严格对os的一些系统目录做了限制,即使是sudo 也不能写
如何查看目录是否有限制?
ls -lO
-l (The lowercase letter ``ell''.) List in long format. (See
below.) If the output is to a terminal, a total sum for all the
file sizes is output on a line before the long listing.
-O Include the file flags in a long (-l) output.
cd /
ls -lO|grep restricted
如何绕过?
1. 关闭rootless, 参见 /article/9880227.html
2. 或者绕过这些目录,出于安全原因,我们还是尽量绕开目录
常用的 gem install 安装默认是安装到 /usr目录下
绕开
sudo gem install -n 二进制文件目录 文件名
如:
sudo gem install -n /usr/local/bin cocoapods
gem help install
相关文章推荐
- linux下配置网络
- Jquery Select 下拉框处理
- 0921词法分析
- 二维数组中的查找(剑指offer)
- dom4j方式写入xml
- FMDB
- 代理设计模式
- text-overflow:ellipsis
- 关于职业生涯规划的会议记录
- 职场新人,你进入职场应该规划的事
- 字符串的正则表达式
- linux——创建用户及所属组总结
- YII1升级到YII2的注意事项
- LeetCodeOJ.Longest Substring Without Repeating Characters
- 最长递增子序列
- 数学问题和狼追兔问题
- eclipse下修改tomcat的URIEncoding为UTF-8
- 计算1/1-1/2+1/3-1/4......+1/99-1/100的值
- 详细透彻的分析DM9000网卡驱动程序(1)
- 分享txt转换pdf格式具体转换方法