LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Check User Account Status in Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/check-user-account-status-in-solaris-871450/)

devUnix 03-28-2011 08:41 AM

Check User Account Status in Solaris
 
Hi,


How do we check:

[1] whether a particular user account is locked or not?

[2] if a particular user's password has been removed? (Actually, we are moving to Token and removing static passwords for logins. In some cases, when users face problem we need to check if thier passwords are removed or not.)

Please Note: I do have appropriate privileges on the server to perform the above activities. However, I cannot read /etc/shadow as only "root" has the permission.

The following file does provide some information on password in the second field:

Code:

grep userName /etc/passwd
System Info:

Code:

$uname -a
SunOS ServerName 5.9 Generic_122300-48 sun4u sparc SUNW,Sun-Fire
$


jlliagre 03-28-2011 03:15 PM

Quote:

Originally Posted by devUnix (Post 4306259)
I do have appropriate privileges on the server to perform the above activities. However, I cannot read /etc/shadow as only "root" has the permission.

So what privileges have you been granted and how, precisely ?
Quote:

The following file does provide some information on password in the second field:
Code:

grep userName /etc/passwd

Not any more since a couple of decades.

You might be looking for the
Code:

passwd -s username
command.


All times are GMT -5. The time now is 08:03 AM.