Solaris 10  - change user password

Posted on 2011-03-22
Last Modified: 2012-05-11

I want to change the password for a specific user due to the following error.

da@ss03ust> su - ocle
su: Password for user 'ocle' has expired - use passwd(1) to update it

How should I proceed?

I don't want to end up in a chicken-and-the-egg problem where you can't log in to change it.

Question by:joaotelles
LVL 68

Assisted Solution

woolmilkporc earned 125 total points
ID: 35188741
Log in as ocle using telnet, ssh, rsh or the console.
This will succeed and you can change ocle's password, as opposed to "su" where this is not possible.


LVL 11

Accepted Solution

Pieter Jordaan earned 125 total points
ID: 35189027

The easiest way is to login with the root account, then use:

passwd ocle
Then type in the new password.

Author Closing Comment

ID: 35189521
Tks! Both ways worked.

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question