| United States-English |
|
|
|
![]() |
HP CIFS Server 2.2g Administrator's Guide: HP-UX 11.0, 11i version 1 and 2 > Chapter 3 Managing
HP-UX File Access Permissions from Windows NT/XP/2000UNIX File Permissions and POSIX ACLs |
|
The HP CIFS Server enables the manipulation of UNIX file permissions or VxFS POSIX ACLs from Windows NT, XP or Windows 2000 clients. With this capability most management of UNIX file permissions or POSIX ACLs can be done from the familiar Windows Explorer interface.
As a result of the ACL data differences in NT and UNIX file permissions and VxFS POSIX, Samba must map data from UNIX to NT and NT to UNIX. The table below shows how UNIX file permissions translate to Windows NT ACL access types: Table 3-1 Title not available (Viewing UNIX Permissions From Windows NT )
In addition to the permission modes shown above, UNIX file permissions also distinguish between the file owner, the owning group of the file, and other (all other users and group). UNIX File Owner Translation in NT ACL A UNIX file system owner has additional permissions that others users do not have. For example, the owner can give away his ownership of the file, delete the file, rename the file, or change the permission mode on the file. These capabilities are similar to the delete (D), change permissions (P) and take ownership (O) permissions on the Windows NT client. Samba adds the DPO permissions to represent UNIX file ownership in the Windows NT explorer interface. For example, if a file on the UNIX file system is owned by UNIX user john and john has read and write (rw-) permissions on that file, the Windows NT client will display the same permissions for user john as: Special Access(RWDPO) You can also display the UNIX owner in the Windows NT Explorer interface. If you are in the File Properties dialog box with the Security tab selected and you press the Ownership button, the owning UNIX user's name will be displayed. UNIX Owning Group Translation in NT ACL The owning group on a UNIX file system is represented on the Windows NT client with the take ownership (O) permission. While the meaning of the take ownership permission on NT doesn't exactly match the meaning of an owning group on the UNIX file system, this permission is still translated into the take ownership permission. This representation becomes even more significant when translating VxFS POSIX ACLs, as there can be many groups with different permissions on an individual file in this file system. Without this permission type, you would not be able to tell the owning group entry from other group entries. For example, if an owning group named sales on the UNIX file system has read and execute (r-x) permissions on a file, the Windows NT client will display the permissions for group sales as: Special Access(RXO) UNIX Other Permission Translation in NT ACL In UNIX, the other permission entry represents permissions for any user or group that is not the owner, and doesn't belong to the owning group. This entry maps to the everyone access control entry on the Windows NT client. NT Directory and File Permission Translations Windows NT clients display two sets of permissions for directory entries: directory permissions and file permissions. Directory Permissions are the permissions for the directory itself. File Permissions are the permissions inherited by the files and subdirectories created in the directory. Samba translates UNIX permissions for a directory into Windows NT directory permissions and vice versa. Windows NT file permissions are not supported when the translation is to/from UNIX permissions. NT file permissions, however, are supported with VxFS POSIX ACLs (as described in the next section). Setting UNIX Permissions from Windows NT With one exception, reversing the UNIX to NT translations described above will always work. You cannot, however, change the owner or owning group by adding Special Access(DPO) or Special Access(O) to a user or group from the client. All NT permissions, except read, write and execute, are disregarded when applied to files on the Samba server. These include delete (D), change permissions (P) and take ownership (O). The table below shows how NT access types map to UNIX permissions: Table 3-2 Title not available (Viewing UNIX Permissions From Windows NT )
When mapping to UNIX file permissions from NT, you will not be able to add new NT ACL entries because only the owner, owning group and other ACL entries are supported by UNIX permissions. UNIX ignores unrecognized entries. Conversely, you cannot delete any of the three entries listed above as these entries are required by UNIX. Pre-defined NT Permissions The Windows NT Explorer ACL interface allows you to choose predefined permissions like Change and Full Control in addition to creating custom Special Access permissions. If you use pre-defined NT access types to set permissions on a Samba share, the permissions that are displayed later will not match what you set in NT. For example, Full Control will become rwx on the Samba server, and when it is displayed on the Windows NT client, it will show up as Special Access (RWX). Table 3-3 Title not available (Viewing UNIX Permissions From Windows NT )
VxFS POSIX ACLs are a superset of UNIX file permissions. VxFS POSIX ACLs extend the concept of UNIX file permissions in three ways.
VxFS POSIX ACLs translated to NT ACLs The extra features of VxFS POSIX ACLs affect the translations to and from NT ACLs in the following ways:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||