Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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?
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.
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????
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.