Previous | Table of Contents | Next |
THIS CHAPTER DESCRIBES HOW TO SET UP AND ADMINISTER USER ACCOUNTS AND groups by using Admintool. You can use Admintool to edit only files in the local /etc directory. Functionality that enabled you to edit NIS+ databases and view NIS maps from Admintool has been moved into the unbundled Solstice AdminSuite product.
NOTE: Solaris 2.x provides the following SVR4 useradd commands: useradd, userdel, usermod, groupadd, groupmod, and groupdel. Because these commands are only minimally network-aware, they are not described in this chapter. If you want to use these commands to administer user accounts on standalone systems, refer to the appropriate manual pages.
Table 7-1 lists the recommended tools for adding and administering user accounts on systems with a graphics monitor running an X Window system such as CDE or OpenWindows.
Environment | Recommended Tool | Availability/Documentation |
---|---|---|
Remote and/or local systems in a networked, name service (NIS, NIS+) environment | User and Group Manager (graphical user interface) from the Solstice AdminSuite | Available as a separate product. Refer to the Solstice AdminSuite 2.3 Administration Guide. |
Local system | Admintool (graphical user interface) | Provided with Solaris 2.6. Instructions provided in this chapter. |
Command-line | Terminal window (CDE Environment) or shell tool or command tool (OpenWIndows Environment) | Provided with Solaris 2.6. See Table 7-2 for a list of available commands. Refer to the appropriate manual pages. |
You can add and administer user accounts from the command line if you choose not to use Admintool or the Solstice AdminSuite. Table 7-2 lists the Solaris commands you can use to administer user accounts.
Task | Name Service | Commands |
---|---|---|
Add a user account | NIS + | nistbladm nisclient |
NIS | useradd make | |
None | useradd | |
Modify a user account | NIS+ | nistbladm |
NIS | usermod make | |
None | usermod | |
Delete a user account | NIS+ | nistbladm nisclient |
NIS | userdel make | |
None | userdel | |
Set up user account defaults | NIS+ | not available |
NIS | useradd -D make | |
None | useradd -D | |
Disable a user account | NIS+ | nistbladm |
NIS | passwd -r nis -l make | |
None | passwd -r files -l | |
Change a user's password | NIS+ | passwd -r nisplus |
NIS | passwd -r nis | |
None | passwd -r files | |
Sort user accounts | NIS+ | niscat sort |
NIS | ypcat sort | |
None | awk sort | |
Find a user account | NIS+ | nismatch |
NIS | ypmatch | |
None | grep | |
Add a group | NIS+ | nistbladm |
NIS | groupadd make | |
None | groupadd | |
Modify users in a group | NIS+ | nistbladm |
NIS | groupmod make | |
None | groupmod | |
Delete a group | NIS+ | nistbladm |
NIS | groupdel make | |
None | groupdel | |
The following sections describe how to use Admintool to add and delete user accounts.
You may find it useful to create a form from the following checklist to ensure that you have all the needed information about a user account before you create it:
Before you add users to the network, the users' systems must be installed and configured. When appropriate, NIS+ or NIS software should be installed and running on the network. (Only 4.x systems can be NIS servers. You can have either 4. x or 5. x systems installed as NIS clients.)
Adding users so that they can log in and start working has two steps: setting up the user account and providing the user with a working environment.
When you set up a user account, you
The next sections provide background information and describe how to do these tasks.
Previous | Table of Contents | Next |