ZFS Folder Permissions (chmod) and ACL Settings on Nexenta
来源:互联网 发布:华为手机网络连接异常 编辑:程序博客网 时间:2024/04/28 14:15
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/
- ZFS Folder Permissions (chmod) and ACL Settings on Nexenta
- Setting file and folder permissions
- Nexenta: Ubuntu Server with ZFS goodness
- File Permissions and the chmod/chgrp/chown commands
- Tomcat无法安装 Check your settings and permissions Ignore and continue anyway
- How to check iscsi issue on Nexenta
- Best Practise for Runner/Service on Nexenta
- Failed to install tomcat6 service check your settings and permissions的解决办法(Tomcat)
- tomcat卸载不干净重新安装失败(check your settings and permissions)
- make ls and chmod command on android device
- Add zfs swap on solaris
- source folder, folder and package
- Beginners Level Course:File Permissions - chmod
- Set Access Control to File/Folder (ACL)
- Principals,Securables and Permissions
- Security and Permissions
- .NET Permissions and others
- security and permissions
- H.265_open_hevc_伤感哥的学习笔记(1)
- HDFS dfsclient读文件过程 源码分析
- 一个cocos2dx 游戏解读(SceneStart)
- VS2005(vs2008,vs2010)使用map文件查找程序崩溃原因
- uva 100 The 3n + 1 problem
- ZFS Folder Permissions (chmod) and ACL Settings on Nexenta
- C++构建堆
- 面试 准备篇
- 简单实现内网主机通过防火墙nat回环路由实现安全互访
- 游戏更新-拖拉机&升级 Android
- HDFS dfsclient写文件过程 源码分析
- Spring MVC 框架搭建及详解
- How to optimize NexentaStor performance?
- 中断标志字是自动置位的吗