1752467 Members
6332 Online
108788 Solutions
New Discussion юеВ

Re: Display Logins

 
SOLVED
Go to solution
brian_31
Super Advisor

Display Logins

I need a way to display all the user logins in a specific way.

loginname *LK*
loginname

I need the loginname and the status. for active accounts it can be blank but for locked a/c i need the *LK* displayed next to it.

Thanks

brian
3 REPLIES 3
spex
Honored Contributor
Solution

Re: Display Logins

Hi Brian,

# passwd -sa

PCS
James R. Ferguson
Acclaimed Contributor

Re: Display Logins

Hi Brian:

See the manpages for 'logins(1M)'.

Regards!

...JRF...
Peter Godron
Honored Contributor

Re: Display Logins

Brian,
expanding spex's solution:
passwd -sa | sed "s/LK/*LK*/" | sed "s/PS//"