目前的桌面环境是openbox + pcmanfm,挂载移动硬盘的时候,不管是目录还是文件,权限都是777,这是不符合原则的,我想到了修改hal的规则文件:/usr/share/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi,添加下面的语句:
<append key=”volume.mount.valid_options” type=”strlist”>dmask=</append>
<append key=”volume.mount.valid_options” type=”strlist”>fmask=</append>
但是设置了之后,重启hal,挂载移动硬盘还是777的权限,上Sir一问,原来pcmanfm本身有一个mount.rules规则设定,那就改这个文件吧,终于解决了权限的问题。编辑/usr/share/pcmanfm/mount.rules,更改部分如下:
[ntfs-3g] # mount_options=locale=;exec mount_options=fmask=0113;dmask=0002;locale=;exec [ntfs] mount_options=umask=222;utf8;exec fstype_override=ntfs-3g
还可以参考以下这篇帖子:http://bbs.archlinux.org/viewtopic.php?id=55751
If you like this post and would like to receive updates from this blog, please subscribe our feed.
九月 13th, 2009 at 6:03 下午
宁波的又是Linuxer,握手!
九月 13th, 2009 at 8:04 下午
呵呵,握手握手