The three name mapping files (SYS:ETC\PASSWD, SYS:ETC\NFSUSERS, and SYS:ETC\NFSGROUP) are used by NUC.NLM to establish user identity when a UnixWare user accesses a NetWare volume running NUC.NLM in NetWare or UNIX mode. (When accessing files on DOS or NetWare mode volumes, the name mapping files are not consulted.) Together, the files map UnixWare user logins and groups to NetWare usernames and groups, using the UnixWare user ID (UID) and group ID (GID) to link the NetWare and UnixWare names in the files.
user1:x:4096:750::/home/user1:/bin/kshYour NFSUSERS entry would be:
4096 user1Similarly, the GID field in the PASSWD file (the fourth colon-separated field) must map to a corresponding entry in the nfsgroup file.
For example, an entry in the NFSGROUP file for group 750 in the example above might be:
750 MGMT
If the UnixWare user user1 (UID=4096, GID=750) logs into NetWare as user1, he will be able to use UnixWare commands to perform any actions that the NetWare user MARKH (group MGMT) could normally perform on any volumes supporting NUC.NLM in UNIX mode.
When displaying file information, NetWare access control and ownership information for files on these volumes will be translated to UnixWare access control and ownership information.
For example, let's say that UnixWare user user1 logs in to NetWare as user1 and creates a NetWare file called travel.exp that only user1 can access with write permission.
If NUC.NLM is loaded for the volume in UNIX mode, then when user1 enters ls -l in that directory from UnixWare, he sees the following:
-rw-r--r-- 1 user1 mgmt 1024 Jul 18 13:02 travel.exp