LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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, 12:23 PM   #1
Satish123
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Rep: Reputation: Disabled
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
 
Old 10-20-2017, 02:49 PM   #2
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
maybe one of
Code:
w
who
id
(and each man page respectively)
can help?
 
Old 10-24-2017, 05:15 AM   #3
Satish123
LQ Newbie
 
Registered: Oct 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
maybe one of
Code:
w
who
id
(and each man page respectively)
can help?


Hi,

thanks for responding me,i am new to the linux would you be able to provide that command?
 
Old 10-24-2017, 01:36 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
those are 3 commands.
documentation can be accessed by prepending 'man ' to each command.
 
Old 10-25-2017, 01:51 AM   #5
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 759

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
One can www-search: man whatever
Try a web-search like:
aix linux lsuser "time_last_login" "lastupdate " "account_locked" "rlogin" "maxage"

http://bhami.com/rosetta.html is good, but your task will require some Unix knowledge.
 
  


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
lsuser alernatives indianidol Linux - Newbie 3 10-20-2017 03:06 PM
LXer: How to use IP (replacement for ifconfig) Command on Linux LXer Syndicated Linux News 0 10-19-2016 10:21 AM
Replacement Linux Wallpaper for DeskTop needed. What say you? liebre Linux - General 8 09-09-2011 09:10 PM
Line Replacement help needed. pinga123 Linux - Newbie 2 11-05-2009 02:46 AM

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

All times are GMT -5. The time now is 07:16 PM.

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