Multiprotocol File Permissions

Users coming through various protocols see the same set of files. The Unified Storage Device (USD) figures out whether users have the rights to perform operations on those files. Currently this is done by deciding that you are either a Windows user or a UNIX user.

The authentication is made through a combination of protocol and authentication method. The following table lists the combinations:

Request

User type

NFS

UNIX

HTTP with basic authentication

UNIX

FTP with basic authentication

UNIX

CIFS

Windows

HTTP with NTLM authentication

Windows

FTP with NTLM authentication

Windows

WebDAV

Windows

When a request comes through UNIX, it contains file system IDs (FSIDs), a user ID (UID), group IDs (GID), inode numbers, and so on. A Windows request comes with a path name, user SID, Group SID list, file offset, and so on. There is neither a one-to-one mapping between them, nor between the permission and Access Control List (ACL) (ACLs are more expressive than permissions). There is a one-to-one mapping of a user's identity in the Windows space and its identity in the UNIX space. For this reason, the storage system does user name mapping. If your account name in Windows is the same as your UNIX account, by default, your UNIX account is used if you come in through Windows to use a UNIX file, or vice versa. The special name mapping file /etc/usermap.cfg allows other mappings.

Following are the four possible cases:

The USD compares the UID and GID list and requested operation against the file owner, group, and permissions, and grants or denies access.

The USD compares the SID and requested operation against the Access Control Entries (ACEs) in the ACL until access is granted or denied.

The USD allows the following kinds of qtrees to set file permissions:

People mostly touch the same files from the same systems. Even when they touch them from both directions, as happens in Engineering environments, people typically set permissions using one system or the other.

 

 


Related Topics