System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

Setting User Attributes With the useradd, usermod, and passmgmt Commands

You can use the following commands with the -K option and a key=value pair to set user attributes in local files :


Modify user information


Set default project for user


Modify user information

Local files can include the following:

If a network naming service such as NIS is being used to supplement the local file with additional entries, these commands cannot change information supplied by the network name service. However, the commands do verify the following against the external naming service database:

For more information, see the passmgmt(1M), useradd(1M), usermod(1M), and user_attr(4) man pages.