热门关键字:  ubuntu  分区  函数  Fedora  linux系统进程

当前位置 :| 主页>Linux教程>软件应用>

使用Mount bind时需要注意的权限问题

来源: 作者: 时间:2007-03-16 Tag: 点击:

在使用mount --bind olderdir newerdir命令来挂载一个目录到另一个目录后,newerdir的权限和所有者等所有信息会发生变化。如下所示:

挂载前:

drwxr-xr-x 2 root root 4096 Mar 12 12:01 pub

drwx------ 3 staffs staffs 4096 Mar 15 14:08 staffs

挂载:

# mount --bind staffs/ pub/

挂载后:

drwx------ 3 staffs staffs 4096 Mar 15 14:08 pub

drwx------ 3 staffs staffs 4096 Mar 15 14:08 staffs

从上可以看出,挂载后的目录继承了被挂载目录的所有属性,除了名称。


最新评论共有 4 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
用户名: 密码:
匿名?
注册