Examples for the users.local file
In the following example, the first and second entries in the users file grant read/write access to user1 and user2, who are associated with the role of SrAdmin. Both users are mapped to Administrator on this server. Because no hosts field is provided, user1 and user2 can access this server from any other server. The third and fourth entries, which are for user1 and user2, do not associate those users with a role but do map them to user Administrator. These entries are used for granting permissions to Network Shell users. The fifth entry grants read-only access to user3, who is associated with the role of JrAdmin and is mapped to Anonymous on this server. The last entry forbids access to all users who are not specified in the users file.
SrAdmin:user1 rw,map=Administrator
SrAdmin:user2 rw,map=Administrator
user1 rw,map=Administrator
user2 rw,map=Administrator
JrAdmin:user3 ro,map=Anonymous
nouser
The following example in the users.local file grants read/write access to user1 and user2 if they are connecting from either host1 or host2 and they have a local account with the same user name and user ID as they do on the host from which they are connecting. If user1 is not connecting from host1 or host2, then user1 is only given access to the /data directory and granted the permissions of user3. If user2 is not connecting from host1 or host2, user2 is granted read-only permission.
user1 hosts=host1:host2,rw,validuser
user2 hosts=host1:host2,rw,validuser
user1 rw,rootdir=/data,map=user3
user2 ro
The following example in the users.local file grants read/write access to user1 and user2 and forbids access to all other users.
user1 rw
user2 rw
nouser