Hi,

I’m looking at moving my home media server from unbuntu running lxd/lxc/kvm 
with zfs to smartos.  What I need to be able to do is have datasets mounted in 
different zones and have different users in each zone have certain permissions 
on the datasets.  For example, my user account in the samba zone gets full 
control to everything.  My wife’s account will get full control to her folders. 
 I’ll have emby server running in a ubuntu lx zone and the emby user needs to 
be able to delete child objects and create new objects.  When I used to run 
freenas I had no problem making this work with nfsv4 acls.  On ubuntu I’m stuck 
with posix acls which is why I am wanting to move to smartos.

Here is my test media dataset as seen in the gz:

[root@smartos /storage]# ls -Vd media
drwxr-xr-x+  2 root     root           2 Mar 26 17:46 media
              user:1000:rwxpdDaARWcCos:-------:allow
                 owner@:rwxp-DaARWcCos:-------:allow
                 group@:r-x---a-R-c--s:-------:allow
              everyone@:r-x---a-R-c--s:———:allow

I set the acls using chmod in the gz. UID 1000 is my user account in the most 
recent joyent base-64 zone which is running samba.

Now, running ls -Vd media from inside my zone fails.  I’m not sure what that is 
about, maybe I need to install something for acl support in the zone?

[root@smbtest /storage]# ls -Vd media
ls: invalid option -- 'V'
Try 'ls --help' for more information.


[root@smbtest /storage]# ls -l  
total 1
drwxr-xr-x+ 2 root root 2 Mar 26 17:46 media

You can clearly see there are acls set with the + sign.

My user is not able to write files to the media dataset as it is.  If I chown 
to user 1000 (either inside of the zone or in the gz) then I can write.  So it 
seems the acls are being ignored in the zone.

Is there any way to get acls to work with lofs?  Or maybe there is a better way 
to achieve what I want.

-------------------------------------------
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com

Reply via email to