(originally published on 21.03.2019, reviewed/rewritten on 30.03.2025, tested on Oracle Solaris 11.4 SRU 79)

Apropos users, In 11.4 Solaris got a tool to ease the management of user account. The tool is called useradm. You can use it to add, modify, delete and list user and their configugrations properties. It’s not installed by default. You have to install it with ` pkg install useradm`.

For example, you can create a user like this:

root@testbed:~# useradm add -u 1001 -g 65534 -d /export/home/testuser -s /bin/bash -c "testuser" -P testuser 
New Password->
Confirm Password->
Password Accepted

You can display the configured properties of the user.

root@testbed:~# useradm list testuser
username = testuser
userID = 1001
groupID = 65534
groupName = nogroup
description = testuser
homeDirectory = /export/home/testuser
defaultShell = /bin/bash
accountStatus = Password

However, perhaps the most interesting part is the ncurses based interfaces to configure all the existing properties of a user. The first time you are using this interface it gets much clearer to you how many properties there are. There are really a lot, many related to features few people are are aware of. You get into this interface by just entering useradm testuser.

useradm

Do you want to learn more?

Managing User Accounts and User Environments in Oracle® Solaris 11.4 - About the useradm Application

Written by

Joerg Moellenkamp

Grey-haired, sometimes grey-bearded Windows dismissing Unix guy.