szaydel
10/23/2014 - 2:45 PM

zfs smb ACL permissions NFSv4, NTFS permission examples

zfs smb ACL permissions NFSv4, NTFS permission examples

/usr/sun/bin/chmod -r A0+group:"Domain Users":rwx--Da-R-c--s:fd-----:allow /volumes/poolA/homes/home
 /usr/sun/bin/chmod -r "A0+group:Domain Users:rwx--Da-R-c--s:fd-----:allow" /volumes/poolA/homes/home
  /usr/sun/bin/chmod "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:Domain Users:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow" /volumes/poolA/homes/home

  /usr/sun/bin/chmod "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---a-R-c--s:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:Domain Users:r-x---a-R-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow" /volumes/poolA/homes/home


  /usr/sun/bin/chmod "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---a-R-c--s:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:Domain Users:r-x---a-R-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow" /volumes/poolA/homes/home


root@clus-a-02:~# lsx -luVd /volumes/poolA/homes/home/brownb
drwxrwx---+ 6 brownb root 9 Oct 11 22:22 /volumes/poolA/homes/home/brownb
group:root:rwxpdDaARWcCos:fd-----:allow
owner@:rwxpdDaARWc--s:fd-----:allow


/usr/bin/chmod "A=group:2147491847:rwxpdDaARWcCos:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:staff:r-x---a-R-c--s:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow"

## Use with Jason tomorrow
/usr/sun/bin/chmod "A=group:2147483675:rwxpdDaARWcCos:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:staff:r-x---a-R-c--s:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow"



/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:-------:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:staff:r-x---a-R-c--s:fd-----:allow,group:2147508250:rwxpdDaARWcCos:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147508253:rwxpd-aARWc--s:fd-----:allow" 


/usr/sun/bin/chmod "A=everyone@:rwxpd-aARWc--s:fd-----:allow,group:root:rwxpdDaARWcCos:fd-----:allow,group:2147483659:rwxpdDaARWcCos:fd-----:allow,user:2147483651:rwxpdDaARWcCos:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow"

/usr/bin/chmod "A=group:2147491847:rwxpdDaARWcCos:fd-----:allow,group:staff:r-x---a-R-c--s:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow"


# Sets share-level permissions for Local Administrators (Domain Admins are member of local Administrators) and Domain Users
/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:-------:allow,user:smb:rwxp-D-ARW-Cos:-------:allow,group:2147483650:rwxpdDaARWcCos:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147483651:rwxpd-aARWc--s:fd-----:allow"

/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:------I:allow,user:smb:rwxp-D-ARW-Cos:-------:allow,group:2147483650:rwxpdDaARWcCos:fd----I:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147483651:rwxpd-aARWc--s:fd----I:allow"

/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:-------:allow,user:smb:rwxp-D-ARW-Cos:-------:allow,group:root:rwxpdDaARWcCos:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow"

/usr/sun/bin/chmod -R "A=user:2147483651:rwxpdDaARWcCos:------I:allow,user:2147483652:rwxpdDaARWcCos:------I:allow,group:2147483650:rwxpdDaARWcCos:------I:allow,group:2147483651:rwxpd-aARWc--s:------I:allow"





chmodx -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,user:ebr:rwxpdDaARWcCos:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow" /volumes/poolA/cifs2

                 owner@:rwxp-DaARWcCos:-------:allow
                 group@:r-x---a-R-c--s:-------:allow
              everyone@:r-x---a-R-c--s:-------:allow

chmodx -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow,user:2147491841:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/test/01

chmodx -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow" /volumes/poolA/cifs
chmodx -R "A+user:ebr:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/cifs

chmodx -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---a-R-c--s:-------:allow,everyone@:r-x---a-R-c--s:-------:allow,group:2147500038:rwxpdDaARWcCos:fd-----:allow,group:2147483648:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/cifs
       
       group:2147483648:rwxpdDaARWcCos:fd-----:allow



/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/Apple

/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/Windows

/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/Thor

/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/JGallagher


/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,user:root:rwxpdDaARWcCos:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow" 

/usr/sun/bin/chmod -R "A=user:jjames:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow,owner@:rwxpdDaARWcCos:fd-----:allow,group@:rwxpdDaARWcCos:fd-----:allow,everyone@:rwxpdDaARWcCos:fd-----:allow"


/usr/sun/bin/chmod -R "A=group:2147483658:rwxpdDaARWcCos:fd-----:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow,group:2147483653:rwxpdDaARWcCos:fd-----:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow" /volumes/poolA/t01

winname:thortest@lemanscorp.com

##
## Share-level permissions Begin ##
##
/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:-------:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:1233803906:rwxpdDaARWcCos:fd----I:allow,group:2147483760:rwxpdDaARWcCos:fd----I:allow,group:2147483759:rwxpdDaARWcCos:fd----I:allow,user:2147483683:rwxpdDaARWcCos:fd----I:allow" /volumes/poolA/t01

/usr/sun/bin/chmod "A=everyone@:r-x---a-R-c--s:-------:allow,owner@:rwxp-DaARWcC-s:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147483769:rwxpdDaARWcC-s:fd----I:allow,group:2147483760:rwxpdDaARWcC-s:fd----I:allow,user:2147483683:rwxpdDaARWcC-s:fd----I:allow" /volumes/poolA/t01
##

/usr/sun/bin/chmod -R "A=everyone@:r-x---a-R-c--s:-------:allow,owner@:rwxp-DaARWcC-s:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:Domain Admins:rwxpdDaARWcCos:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/apple

/usr/sun/bin/chmod -R "A=everyone@:r-x---a-R-c--s:-------:allow,owner@:rwxp-DaARWcC-s:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:Domain Admins:rwxpdDaARWcCos:fd-----:allow,group:Thor:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/windows

/usr/sun/bin/chmod -R "A=owner@:rwxpdDaARWcCos:fd-----:allow,group@:r-x---aAR-c--s:fd-----:allow,everyone@:------a-R-c--s:fd-----:allow,group:thormgmt:rwxpdDaARWcCos:fd-----:allow,group:unixgroup:Domain Admins:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/jgallagher


##
## File-level permissions Begin ##
## dusrs => "Domain Users"
## 2147483654 => "Domain Admins"
##
/usr/sun/bin/chmod -R "A=user:2147483685:rwxpdDaARWcCos:fd----I:allow,group:2147483685:rwxpdDaARWcCos:fd----I:allow,group:2147483760:rwxpdDaARWcCos:fd----I:allow,group:2147483654:rwxpdDaARWcCos:fd----I:allow" /volumes/poolA/t01/*
##


/usr/sun/bin/chmod -R "A=everyone@:r-x---a-R-c--s:-------:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147483654:rwxpdDaARWcCos:fd-----:allow" /volumes/poolA/t01

/usr/sun/bin/chmod -R "A=everyone@:r-x---a-R-c--s:-------:allow,group:Thor:rwxpdDaARWcCos:fd----I:allow,group:2147483654:rwxpdDaARWcCos:fd----I:allow,owner@:rwxp-DaARWcCos:-------:allow,group@:r-x---a-R-c--s:-------:allow,group:2147483658:r-x---a-R-c--s:fd----I:allow" /volumes/poolA/t01


## Working Do not change
/usr/sun/bin/chmod -R "A=group:Thor:rwxpdDaARWcCos:fd----I:allow,group:2147483654:rwxpdDaARWcCos:fd----I:allow,group:2147483658:r-x---a-R-c--s:fd----I:allow"
##

/usr/sun/bin/chmod -R "A=group:dusrs:rwxpdDaARWcCos:fd----I:allow,group:Thor:rwxpdDaARWcCos:fd----I:allow,group:2147483654:rwxpdDaARWcCos:fd----I:allow" /volumes/poolA/apple/PRINT PROJECTS/2012Projects_List_Updated.xls