lsuser replacement command needed in linux
Hi Guys,
I need your inputs from lsuser command this command is working in six but it’s not working in Linux so I need a replacement command for this also I need exact out put from Linux,below is code for aix does any one can help on getting the same output in Linux,guys it’s been a great help if you can assist me on this.
This sub routine collects data from the OS using the command lsuser that it’s not available on Linux.
lsuser -a time_last_login ALL > baanlist.lastlogin
lsuser -a lastupdate ALL > baanlist.lastpwc
lsuser -a account_locked ALL | grep -v =false > baanlist.locked
lsuser -a rlogin ALL | grep =true > baanlist.rlogin
lsuser -a maxage ALL | grep -v "=8" > baanlist.maxage
lsuser -a expires ALL | grep -v =0 > baanlist.acexpire
Need your inputs and suggestions for alternatives in all above command.
Thanks,
Satish
|