O'Reilly logo

Special Edition Using® Solaris™ 9 by Tanuj Jain, Radhika Girisan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing Users

User management activities can be performed with the command line or with the Solaris Management Console (SMC).

Adding Users with the useradd Command

The useradd command can be used to add users to the system. You also can invoke this command to change the default settings. You can display the default user settings on your system and change these settings as required.

Table 11.2 describes the various options of the useradd command.

Table 11.2. Various useradd Options and Their Descriptions
OptionsDescription
-DChanges the default values.
-oCreates a user account with an existing user ID.
-uSpecifies the user ID.
-gSpecifies the user's primary group.
-GSpecifies one or more secondary groups of which the user might be a member. To specify ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required