This section describes how to edit the passwd and group files. For information about the netgroup and shadow files, see the na_netgroup(5) and na_shadow(5) man pages.
You cannot edit the contents of configuration files from the console of your filer because Data ONTAP does not have a text editor. You need to edit the configuration files from a UNIX/NFS or Windows/CIFS client.
When editing the configuration files, you must follow the specific format required for each file for each entry.
The procedure you use to add entries to the /etc/passwd file depends on whether you are using the /etc/passwd file or either a Windows NT domain controller, NIS, or an LDAP server to authenticate users:
In this procedure, you add entries to the passwd file using a text editor on a UNIX host, and then transfer the file to the filer. You add entries to the passwd file on a UNIX host because each entry in the file requires an encrypted password and Data ONTAP does not have a command for creating passwords. The format for entries in the passwd file is as follows:
username:password:uid:gid:full name:/:default shell
To add entries to the passwd file, complete the following steps.
| 1 | ||
| 2 | ||
| 3 | Make a copy of the existing passwd file under a new name, such as passwd.old. Note |
|
| 4 | ||
Go to Step 5. |
||
Copy this file from the filer to the UNIX host in the /etc directory. This action overwrites the passwd file that exists in the /etc directory on the UNIX host. |
||
| 5 | ||
| 6 | Add entries to the passwd file using the format shown in Adding entries to the passwd file with passwords. Leave the password and default shell fields empty. You set passwords in Step 8. Data ONTAP does not use the default shell field. Note |
|
| 7 | ||
| 8 | Set a password for each user by entering the following command after the UNIX host command prompt: passwd username username is the user name of the user you added in Step 6. The passwd program prompts you to enter the new password twice. |
|
| 9 | Copy the passwd file from the UNIX host to the /etc directory on the filer. |
|
| 10 | Delete the passwd file from the UNIX host and give the copied file (passwd.old) the new name, passwd. |
|
In this procedure, you delete from the passwd file, the entries of users to whom you want to deny access.
To delete entries from the passwd file, complete the following steps.
| 1 | Use a text editor to open the /etc/passwd file on the filer. |
| 2 | Delete the entry for each user to whom you want to deny access. |
| 3 |
In this procedure, you edit the passwd file from a Windows PC or a UNIX/NFS client, using a text editor. You do not need to encrypt a password, because a domain controller or NIS authenticates users. The format for entries in the passwd file is as follows:
username:password:gid:uid:full name:default shell
To edit entries in the passwd file, complete the following steps.
In this procedure, you edit the group file from either a Windows workstation or a UNIX/NFS client using a text editor. The format for entries in the group file is as follows:
groupname::gid:username,...,username
To edit the group file, complete the following steps.
Note
There is no upper limit to the number of entries in the /etc/group file. Any one user, however, can belong to only 32 groups.
Copyright © 1994-2003, Network Appliance, Inc. All rights
reserved.
Part No. 210-00472
File: useraut6.htm
Last updated: 11/17/03 16:57:44