LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2017, 05:37 AM   #1
indianidol
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
Question lsuser alernatives


Hello All,

I am new to the linux and new to this forum. Could someone kindly help me in finding alternatives for the following commands:

lsuser -a time_last_login ALL > list.lastlogin
lsuser -a lastupdate ALL > list.lastpwc
lsuser -a account_locked ALL | grep -v =false > list.locked
lsuser -a rlogin ALL | grep =true > list.rlogin
lsuser -a maxage ALL | grep -v "=8" > list.maxage
lsuser -a expires ALL | grep -v =0 > list.expire

Thanks in advance.
B
 
Old 10-20-2017, 05:48 AM   #2
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 5,679
Blog Entries: 3

Rep: Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919Reputation: 2919
What is the expected output from each of those?
 
Old 10-20-2017, 06:08 AM   #3
indianidol
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Hi,

Those commands are from AIX, and each one returns the output as the name suggests

lsuser -a time_last_login ALL > list.lastlogin --> Returns the list of last login time stamp for each user in the system
lsuser -a lastupdate ALL > list.lastpwc --> Returns the list of last update time stamp for each user
lsuser -a account_locked ALL | grep -v =false > list.locked --> Returns the list of all the locked users from the system
lsuser -a rlogin ALL | grep =true > list.rlogin --> Returns the list of all the users who have remote login enabled
lsuser -a maxage ALL | grep -v "=8" > list.maxage --> Returns the list of all the users who's maxage is equal to 8
lsuser -a expires ALL | grep -v =0 > list.expire --> Returns the list of all the users who account is expired

Thanks,
B
 
Old 10-20-2017, 03:06 PM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 17,426
Blog Entries: 10

Rep: Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248Reputation: 5248
why does this look exactly like this?
could a mod check the IPs?
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:26 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration