Mapping of Windows File ACLs to UNIX POSIX ACLs
Microsoft Windows NT4/200X ACLs must of necessity be mapped to POSIX ACLs.
The mappings for file permissions are shown in
How
Windows File ACLs Map to UNIX POSIX File ACLs.
The # character means this flag is set only when the Windows administrator
sets the Full Control
flag on the file.
Table15.5.How Windows File ACLs Map to UNIX POSIX File ACLs
Windows ACE |
File Attribute Flag |
Full Control
|
#
|
Traverse Folder/Execute File
|
x
|
List Folder/Read Data
|
r
|
Read Attributes
|
r
|
Read Extended Attribures
|
r
|
Create Files/Write Data
|
w
|
Create Folders/Append Data
|
w
|
Write Attributes
|
w
|
Write Extended Attributes
|
w
|
Delete Subfolders and Files
|
w
|
Delete
|
#
|
Read Permissions
|
all
|
Change Permissions
|
#
|
Take Ownership
|
#
|
As can be seen from the mapping table, there is no one-to-one mapping capability, and therefore
Samba must make a logical mapping that will permit Windows to operate more-or-less the way
that is intended by the administrator.
In general the mapping of UNIX POSIX user/group/other permissions will be mapped to
Windows ACLs. This has precedence over the creation of POSIX ACLs. POSIX ACLs are necessary
to establish access controls for users and groups other than the user and group that
own the file or directory.
The UNIX administrator can set any directory permission from within the UNIX environment.
The Windows administrator is more restricted in that it is not possible from within
Windows Explorer to remove read permission for the file owner.
Mapping of Windows Directory ACLs to UNIX POSIX ACLs
Interesting things happen in the mapping of UNIX POSIX directory permissions and
UNIX POSIX ACLs to Windows ACEs (Access Control Entries, the discrete components of
an ACL) are mapped to Windows directory ACLs.
Directory permissions function in much the same way as shown for file permissions, but
there are some notable exceptions and a few peculiarities that the astute administrator
will want to take into account in the setting up of directory permissions.