![]() | Oracle System Handbook - ISO 7.0 May 2018 Internal/Partner Edition | ||
|
|
![]() |
||||||||||||||||||||||||
Solution Type Technical Instruction Sure Solution 1428773.1 : Oracle ZFS Storage Appliance: Configuring file and directory permissions for shared access between UNIX and Windows clients.
In this Document
Created from <SR 3-3740498461> Applies to:Sun ZFS Storage 7420 - Version All Versions and laterSun Storage 7310 Unified Storage System - Version All Versions and later Sun Storage 7210 Unified Storage System - Version All Versions and later Sun Storage 7410 Unified Storage System - Version All Versions and later Sun Storage 7110 Unified Storage System - Version All Versions and later 7000 Appliance OS (Fishworks) GoalThis document provides some guidance on configuring file and directory permissions for shared access from both SMB and NFS. To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support Community - Disk Storage ZFS Storage Appliance Community
SolutionNote: This document assumes that you are running software version 2010.8.17.4.0 or later. There are a number of important ACL and permission-related enhancements in this version and it is STRONGLY recommended that you upgrade to at least this version in order to successfully share files between UNIX and Windows.
Careful planning is required to successfully configure permissions for multi-protocol access. There are significant differences between traditional UNIX permissions and the newer ACL model. Here is a brief overview of the two security models: Traditional UNIX permissions:The basic UNIX file permissions expressed as a three digit octal number. The three digits represent the permissions for owner, group and world respectively. Example:
nas1# ls -l home total 4 drwxr-xr-x 2 root root 2 Aug 24 11:51 file1 ZFS/SMB ACL permissions:Access Control List. Fourteen bits, each providing a specific permission, and four more for inheritance. These allow very granular and fine access control compared to traditional UNIX permissions. For example, there are four different types of read permissions: read data, read attribute, read extended attributes and read ACL. ar-nas-4a# ls -Vd eye
drwxrwxr--+ 3 joe staff 10 Oct 25 20:08 eye group:2147483653:rwxpdDaARWc--s:fd-----:allow user:2147483650:r-----a-R-c---:fd-----:allow owner@:rwxpdDaARWcCos:fd-----:allow group@:rwxpdDaARWc--s:f------:allow group@:r-----a-R-c---:-d-----:allow everyone@:r-----a-R-c---:-------:allow
Tip: use ls -V from Solaris to display all the permission bits and line them up nicely for comparison.
Note: The ACL Behavior on Mode Change is only present on system software version 2011.1 and newer (with the exception of very old code that is beyond the scope of this document). If you are running 2010.Q3 code, you will not see the ACL Behavior on Mode Change pulldown menu, and all shares will behave as listed below under "Discard ACL".
ACL Behavior on Mode Change:
A "mode change" is a non-ACL aware security change, i.e. a chmod-type change to the mode of the file. This could be an actual "chmod ####" command, or it could be something more subtle, like a file rewritten with the vim utility. In any case, this setting specifies what will be done in the case of a security modification that is not ACL aware. The setting is applied globally to every file and directory in the share.
ACL Inheritance Behavior
Given the difference in these models, it is a good idea to pick one as primary for a given data set, though that choice may vary from filesystem to filesystem, or even directory to directory. The considerations for making this choice are primarily the clients that will be accessing the data, and the clients that will be setting security for each of the file structures. ar-nas-4a# ls -Vd eye
drwxrwxr--+ 3 joe staff 10 Oct 25 20:08 eye group:2147483653:rwxpdDaARWc--s:fd-----:allow user:2147483650:r-----a-R-c---:fd-----:allow owner@:rwxpdDaARWcCos:fd-----:allow group@:rwxpdDaARWc--s:f------:allow group@:r-----a-R-c---:-d-----:allow everyone@:r-----a-R-c---:-------:allow This ACL uses named groups and users, inheritance bits, and bits that go beyond what the octal permissions can convey. Note the "+" character at the end of the mode bits:(drwxrwxr--+) nas4> chmod 755 eye
drwxr-xr-x 3 joe staff 10 Feb 1 00:05 eye owner@:rwxp-DaARWcCos:-------:allow group@:r-x---a-R-c--s:-------:allow everyone@:r-x---a-R-c--s:-------:allow ... we can see that much of the detail of the ACL has been lost in the conversion. All the named users, named groups and inheritance bits are gone. Also note that the "+" character is no longer present at the end of the mode bits. This is an indication that the ACL is an exact match for an octal permission set, in this case 755. This ACL is known as a trivial ACL.
... and in order to use the ACL model:
Back to Document 1428753.1 - Sun Storage 7000 Unified Storage System: How to Troubleshoot Identity Mapping and cross-platform file sharing issues. References<NOTE:1428753.1> - Sun Storage 7000 Unified Storage System: How to Troubleshoot Identity Mapping and Cross-Platform File Sharing IssuesAttachments This solution has no attachment |
||||||||||||||||||||||||
|