When connecting to the filer, the user on the CIFS client receives a CIFS credential. The user must also have one or more UNIX credentials. A UNIX credential consists of a UNIX-style UID and group IDs (GIDs). When a CIFS user tries to connect to the filer, Data ONTAP determines the UID and primary GID of the CIFS user. If Data ONTAP cannot determine the UID of the CIFS user, the user is denied access.
You can see the UNIX credential of a connected CIFS user when you display CIFS session information, as described in Displaying CIFS session information.
Data ONTAP uses the UNIX credential in these ways:
Data ONTAP looks up the UNIX password database, which can be an NIS map or the /etc/passwd file, to obtain the UID for a user. The database contains accounts for all users that might access the filer. Each account contains a UNIX-style user name and UID.
For Data ONTAP to obtain a UID for a CIFS user, it must first determine the user's UNIX-style name. Data ONTAP does not require that a user's Windows name be identical to the UNIX name. By entering information in the /etc/usermap.cfg file, you can specify how each Windows name maps to a UNIX name. You do not, however, need to enter mapping information in the /etc/usermap.cfg file if you accept the default mapping. By default, Data ONTAP uses the Windows name as the UNIX name when it looks up the UID. (The filer converts uppercase characters in the Windows name to lowercase before the lookup.) If the user names in the UNIX password database are identical to the Windows names, you need not provide the mapping information in the /etc/usermap.cfg file. If the user name is not found in the UNIX password database and the wafl.default_unix_user pcuser option is set, the default name pcuser is used.
Data ONTAP obtains a user's GIDs in the following ways:
To ensure that only the intended CIFS users receive UNIX credentials and can access the filer, complete the following steps.
| 1 | ||
Some Windows names are different from UNIX names or you want to prevent some CIFS users from accessing the filer |
Edit the /etc/usermap.cfg file, and then go to Step 2. |
|
All Windows names are the same as UNIX names and you want all CIFS users to be able access the filer |
Go to Step 2. |
|
| 2 | Create groups in the UNIX group database. See Mapping UNIX names to UIDs and GIDs. |
|
| 3 | For each CIFS user with a mapped UNIX name, enter the user account in the UNIX password database. |
|
| 4 | ||
Make sure at least one CIFS user maps to the UNIX root account, and then go to Step 5. See Mapping a Windows account to root. Note |
||
Go to Step 5. |
||
| 5 | ||
You want CIFS users who do not have an entry in the UNIX password database to access the filer |
Create a default user account in the UNIX password database, and then go to Step 6. |
|
You want all CIFS users who have an entry in the UNIX password database to access the filer |
Go to Step 6. |
|
| 6 | ||
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00323
File: cifs6.htm
Last updated: 01/15/03 15:45:23