免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1478 | 回复: 3
打印 上一主题 下一主题

[FreeBSD] 发现FreeBSD的一个新特性 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-28 10:14 |只看该作者 |倒序浏览
今天无意间发现在FreeBSD下新建文件或目录时,group ID 会和父目录保持一致

论坛徽章:
0
2 [报告]
发表于 2006-06-28 11:07 |只看该作者
http://www.freebsdchina.org/foru ... 117a333ee9aa3981a68

This behavior can be traced back til the 4.3+BSD.

论坛徽章:
0
3 [报告]
发表于 2006-06-28 13:05 |只看该作者
这不是什么新特性,在"The Design and Implementation of the FreeBSD Operating System"一书中已经说明,在Section2.8中有这么一段话:"Newly created files are assigned the user identifier of the process that created them and the group identifier of the directory in which they were created. "

论坛徽章:
0
4 [报告]
发表于 2006-06-28 13:37 |只看该作者
哈哈,以前用Linux比较多,一直没注意
要是在samba和Ftp里也能这样继承父目录的group ID就好了

[ 本帖最后由 bluegene 于 2006-6-28 13:38 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP