Accounts & identity
Each user has a numeric UID, primary group, home directory and login shell. This identity controls file and process ownership.
Solaris · User Management
Solaris · Lesson 4
Create and manage users in Solaris securely. Password policies and profiles. Understanding RBAC and role based access. Real world administration scenarios.
User management is one of the most common tasks for any Solaris administrator. In this lesson you will learn how to create, inspect, lock and remove user accounts in a safe and repeatable way.
We will focus on normal local users. Network or directory-backed users (LDAP, Active Directory, etc.) are built on top of the same concepts you learn here.
Each user has a numeric UID, primary group, home directory and login shell. This identity controls file and process ownership.
passwd holds public account data; shadow stores encrypted passwords and password policy. Only root can read shadow.
Groups collect users to share access, and Solaris RBAC roles allow finer-grained delegation without full root access.
Below are the exact commands you should try in your lab VM. Each block shows a small, focused sequence so you can practice and repeat it easily.
Before doing any administration work, confirm which account you are using.
The /etc/passwd file holds basic account information that is readable by all users.
Create a normal user with a home directory and default shell. In Solaris, useradd is the standard tool.
Create a normal user with a home directory and default shell. In Solaris, useradd is the standard tool.
Use id, getent and ls to check that the user and home directory were created correctly.
Use su - to test that you can log in as the new account and that the environment looks correct.
Solaris supports locking accounts and deleting them while optionally preserving the home directory.
devuser and opsuser./export/home.su - and confirm that file ownership works as expected.In the next lesson, we will extend this with group-management so that you can manage access for teams instead of individual users.