LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 03-28-2011, 08:41 AM   #1
devUnix
Member
 
Registered: Oct 2010
Location: Bengaluru, India
Distribution: RHEL 5.1 on My PC, & SunOS / Sun Solaris, RHEL, SuSe, Debian, FreeBSD and other Linux flavors @ Work
Posts: 538

Rep: Reputation: 46
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
$

Last edited by devUnix; 03-28-2011 at 12:20 PM.
 
Old 03-28-2011, 03:15 PM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,481

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Quote:
Originally Posted by devUnix View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Solaris 9] unlock user account noir911 Solaris / OpenSolaris 18 09-08-2009 10:11 PM
Solaris 8 - disable user account noir911 Solaris / OpenSolaris 4 02-18-2009 02:46 AM
How do I check a user account to see when the last login was? jdcsyoung Linux - General 2 02-11-2008 01:26 PM
DEBIAN:: Restore account to original status ? blackboab Linux - Software 2 09-13-2007 03:31 AM
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM


All times are GMT -5. The time now is 04:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration