Solaris 11Oracle SolarisSolaris 11.3Solaris 11.4

How to unlock a user account in Solaris 11

This tutorial focuses on how to unlock an os user on Solaris 11 operating system.

Prerequisites

In order to unlock a user account in Solaris 11, you need to be a sudo user or logged in as an administrator account such as root.

Step 1. Become an administrator

Become an administrator or login as a user having Administrative rights (User Security rights profile).

$ sudo su
OR
$ su -

Step 2. Check the status of the user account that you want to unlock

# passwd -s username

-s to check the status of the user account

For example, run the below command to check the status of a user “User1”

Checking status of a user account in Solaris 11
Checking status of a user account in Solaris 11

-LK denotes that the user account is LOCKED

Now let’s proceed to unlock the user account.

Step 3. Unlock the user account

Use the below command to unlock the user account:

$ passwd -u username
passwd: password information changed for username

After running the command you will get the below message :

passwd: password information changed for username

For example, run the below command to unlock the user account “User1”

Unlocking a user in Solaris 11
Unlocking a user in Solaris 11

Step 4. Check if user account has been unlocked

# passwd -s username

-s to check the status of the user account

For example, run the below command to check the status of a user “User1”

Checking status of a user account in Solaris 11
Checking status of a user account in Solaris 11

PS denotes that the user account is UNLOCKED and is having a valid password.

0 0 votes
Article Rating

Prashanth Nimesh

I have passed B.Tech in Computer Science and currently working as a System Administrator with over 4 years of experience in the IT field. I am also the creator of the theGeeksHub website and its main contributor.

Related Articles

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Back to top button