ZFS Folder Permissions (chmod) and ACL Settings on Nexenta


ZFS Folder Permissions (chmod)

The simplest way of setting up permissions is probably using ACL's with inheritance instead of UNIX-type access rights.

    Set unix permissions of shared folder to 755 or 777 (needed for guest access)
    Handle the whole thing via ACL, set it from Windows
    Remove default acl

/usr/sun/bin/chmod A- /pool/folder

Set ACL to new defaults:

Everyone can modify:

/usr/sun/bin/chmod A=everyone@:modify_set:file_inherit/dir_inherit:allow /pool/folder

Root has all rights:

/usr/sun/bin/chmod A+user:root:full_set:file_inherit/dir_inherit:allow /pool/folder

To make it more Windows-like:

zfs set aclinherit=passthrough /pool/folder
 

Set all other CiFS rights (acl only) within Windows - based on your Nexenta user or smb-groups (workgroup mode) or domain-user/groups (domain mode). ACL's are Windows-like. If you need guest access or share a folder via NFS (use NFS3 for a ESXi datastore), set ACL-permissions from Windows recursively to modify for everybody on your SMB + NFS shared folder.

You can also use the below command

/usr/sun/bin/chmod -R A=owner@:full_set:d:allow,\
owner@:full_set:f:allow,\
everyone@:rxaARWcs:d:allow,\
everyone@:raARWcs:f:allow \
$1

For Ready Reference, please visit the following from Oracle.

ZFS ACLs from Mark Shellenbaum's Weblog  - http://blogs.oracle.com/marks/entry/zfs_acls

Solaris ACL from the blog of Ben Rockwood -  http://cuddletech.com/blog/pivot/entry.php?id=939

Solaris ZFS Administration Guide Chapter 8 ACL Management - http://download.oracle.com/docs/cd/E19253-01/819-5461/

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值