cancel
Showing results for 
Search instead for 
Did you mean: 

check user status

Shah Gaurang B.
Frequent Advisor

check user status

Hi Experts,

I am new in Linux . Can someone tell me how to check user locks status in linux like getprpw command in HP-UX.

Thanks in advance.
5 REPLIES
Steven E. Protter
Exalted Contributor

Re: check user status

Shalom,

Depends on what kind of Linux you are using.

Red Hat has a nice GUI called system-config-users

There is a system-config for many common tasks.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Shah Gaurang B.
Frequent Advisor

Re: check user status

Thanks for quick response.

I have Linux version 2.4.21-37.ELsmp Redhat.
what is the command in CLI mode? I am not authorized to use GUI.
Matti_Kurkela
Honored Contributor

Re: check user status

Based on the kernel version string, you have RedHat Enterprise Linux (=RHEL) 3. There is not enough information to determine whether you're using AS, ES or WS version of the distribution. However, we _can_ see you aren't quite up to date with kernel patches :-)

See:

passwd -S
chage -l

The first command will tell you whether the account is locked or not.
The second command will display password/account expiration times.

MK
MK
Shah Gaurang B.
Frequent Advisor

Re: check user status

From the first command I received message

encrypted password set, MD5

i am not getting any information.
skt_skt
Honored Contributor

Re: check user status

"encrypted password set, MD5" is normal for an active account.

"chage -l" is the better one. The account gets locked due to multple reason. As far i know the chage covers those lock reasons and displays

Last Change: Jan 29, 2008
Password Expires: Mar 29, 2008
Password Inactive: Apr 28, 2008
Account Expires: Never