LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-12-2019, 12:46 AM   #1
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Rep: Reputation: Disabled
Required local user details


Hi Team,

We are having 50+ Linux systems located in different locations.I am looking for local users for all systems. Do we have any tool to get this information.

Note: This systems are not in domain.

Thanks,
Sujit
 
Old 07-12-2019, 01:40 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
cat /etc/passwd?
 
Old 07-12-2019, 02:19 AM   #3
sujitb
LQ Newbie
 
Registered: Dec 2018
Posts: 17

Original Poster
Rep: Reputation: Disabled
Thanks for your response. But I am looking this information for more than 50 systems which will give info in single file..
 
Old 07-12-2019, 05:46 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by sujitb View Post
Thanks for your response. But I am looking this information for more than 50 systems which will give info in single file..
You will have to look at passwd file on all 50 systems. How do you login to these systems now?
If you have key based authentication setup you can easily script this.
Do you have any automation tools puppet/ansible etc?
 
Old 07-12-2019, 06:33 AM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,614

Rep: Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695Reputation: 2695
Take some time and configure mpssh. I have used it to remotely run a command on 288 systems at once and collate the output into a single file. There are other tools that do parallel execution on multiple hosts that might work as well for you. Research is indicated.
 
Old 07-12-2019, 06:45 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sujitb View Post
Hi Team,
We are having 50+ Linux systems located in different locations.I am looking for local users for all systems. Do we have any tool to get this information. Note: This systems are not in domain.
...and....
Quote:
Originally Posted by sujitb
Thanks for your response. But I am looking this information for more than 50 systems which will give info in single file..
We aren't on your 'team', and quite obviously they aren't in a domain, since that's a Windows concept. If you got the job of administering 50+ Linux systems, you must have SOME skills/knowledge about Linux, and how to perform such simple tasks. wpeckham named one common tool, but you tell us nothing about what else you may have available (as dc.901 asked about), nor what your goal is, how often you need to do this, etc.

Writing a simple bash script to do a keyswap to all 50+ systems shouldn't take very long, and after that, it should also be a simple script to look at/download the /etc/passwd files from those systems to a local system. What have you done/tried so far????
 
  


Reply



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
Comprehensive Details on Linux kernel compile options required. s.verma Linux - General 4 03-19-2014 09:14 AM
tshark: want udp, bootp details only, not Frame, Ether, IP details chrism01 Linux - Server 1 09-11-2013 01:29 AM
C program source details required for scan the available wireless network kesavan.sr Linux - Networking 2 03-03-2011 04:42 AM
Details required v_venkatkumar Linux - Newbie 1 11-26-2008 01:51 AM
Mose Protocol Details Required ayusman Linux - Hardware 1 10-22-2007 08:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:51 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