Managing User Accounts and User Environments in Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

How to Modify a User Account

The usermod command is used to change the definition of a user's login and make appropriate login-related file system changes for the user.

  1. Assume the root role or a role that has the User Management rights profile.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Modify the user account, as required.

    See the usermod (1M) man page for details about the arguments and options that you can specify with the usermod command.

    For example, to add a role to a user, you would type:

    # usermod -R role username
Example 2-1  Setting Per-User PAM Policy by Modifying a User's Account

The following example shows how to modify a user to set PAM policy. This particular modification specifies that user jdoe should only be authenticated with the Kerberos V5 protocol for all PAM services. See the pam_user_policy (5) man page for more information.

# usermod -K pam_policy=krb5_only jdoe

See also

For additional information, see Creating a Role in Securing Users and Processes in Oracle Solaris 11.2 .