我下载了Eclipse,将其解压缩,做了其他一些事情,突然间我注意到了这种有趣的行为:
^_^ ~/Downloads > sudo chmod 0000 eclipse/
^_^ ~/Downloads > stat eclipse/
File: 'eclipse/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 529725 Links: 9
Access: (2000/d-----S---) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-11-22 19:54:57.752017352 +1100
Modify: 2012-09-20 18:16:26.000000000 +1000
Change: 2012-11-22 20:07:49.354016510 +1100
Birth: -
^_^ ~/Downloads > sudo chmod 0755 eclipse/
^_^ ~/Downloads > stat eclipse/
File: 'eclipse/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 801h/2049d Inode: 529725 Links: 9
Access: (2755/drwxr-sr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-11-22 19:54:57.752017352 +1100
Modify: 2012-09-20 18:16:26.000000000 +1000
Change: 2012-11-22 20:08:19.042016478 +1100
Birth: -
“ S”权限对目录意味着什么?为什么不让我摆脱它呢?
谢谢。
s
在目录的用户位中(例如)drwsrwxr-x 2 someuser somegroup 4096 May 18 11:39
呢?它似乎没有为目录中创建的文件设置所有者...