PointandClick
Limp Gawd
- Joined
- Dec 6, 2008
- Messages
- 383
Here's the situation. My account is typically the owner for all the files on my ZFS server. I want to setup certain folders like my Movies and TV shows so that they end up belonging to a "media" group with that group having r/w/x control. The primary purpose of this is so I can have a "xbmc" user for my XBMC setups that doesn't need access to my primary account.
Since there's no way to do this with traditional Unix permissions without changing the default umask's, which would effect all my other folders, I'm trying to wrap my head around ACL's.
I have a folder on my pool called "test". Setgid is enabled. I issue this command which, the way I understand it, should give the media group all permissions (except modifying ACL's) and it should be inherited by sub files/folders
Afterwards, the "test" folder shows the following ACL's:
Looks good, but if I create a test file and look at it's ACL it only inherits read attributes
Am I missing something here? Am I misunderstanding the way inheritance works?
Since there's no way to do this with traditional Unix permissions without changing the default umask's, which would effect all my other folders, I'm trying to wrap my head around ACL's.
I have a folder on my pool called "test". Setgid is enabled. I issue this command which, the way I understand it, should give the media group all permissions (except modifying ACL's) and it should be inherited by sub files/folders
Code:
/bin/chmod A+group:media:modify_set:file_inherit/dir_inherit:allow test
Afterwards, the "test" folder shows the following ACL's:
Code:
/bin/ls -vd test
drwxrwsr-x+ 5 me media 9 Jan 19 09:08 test
0:group:media:list_directory/read_data/add_file/write_data
/add_subdirectory/append_data/read_xattr/write_xattr/execute
/delete_child/read_attributes/write_attributes/delete/read_acl
/synchronize:file_inherit/dir_inherit:allow
1:owner@:list_directory/read_data/add_file/write_data/add_subdirectory
/append_data/read_xattr/write_xattr/execute/read_attributes
/write_attributes/read_acl/write_acl/write_owner/synchronize:allow
2:group@:list_directory/read_data/add_file/write_data/add_subdirectory
/append_data/read_xattr/execute/read_attributes/read_acl
/synchronize:allow
3:everyone@:list_directory/read_data/read_xattr/execute/read_attributes
/read_acl/synchronize:allow
Looks good, but if I create a test file and look at it's ACL it only inherits read attributes
Code:
/bin/ls -vd file7-rw-r--r--+ 1 me media 8 Jan 19 09:30 file7
0:group:media:read_data/read_xattr/read_attributes/read_acl/synchronize
:inherited:allow
1:owner@:read_data/write_data/append_data/read_xattr/write_xattr
/read_attributes/write_attributes/read_acl/write_acl/write_owner
/synchronize:allow
2:group@:read_data/read_xattr/read_attributes/read_acl/synchronize:allow
3:everyone@:read_data/read_xattr/read_attributes/read_acl/synchronize
:allow
Am I missing something here? Am I misunderstanding the way inheritance works?