1

I have a homelab there is growing larger and larger and I am learning more and more every day. I was wondering if it is possible to manage all of my users from one server? So i don't have to create a new root and normal user with sudo access each time i spin up another Vm? and easily create a new user, reset password and ect.

4 Answers4

3

You can manage your users using a ldap server, look at freeipa: https://www.freeipa.org/page/Main_Page

Fredi
  • 2,307
  • 13
  • 14
2

There are a variety of central user management techniques available in Linux: , , and are the oldest and probably the best documented and debugged. All of those are going to require a master-slave setup to maintain semi-reliably and replication can be arduous to configure.

Rather than pull your hair out that much when trying to simplify your life I'd suggest using . You can get started without creating any infrastructure other than ssh keys. Ansible has a user module for managing users, but it also allows you to configure everything else. Maybe you want to have all of your servers using the same name servers: add a little more ansible. Maybe you want all of your servers to display a helpful /etc/motd then ansible can help again. The opportunities for saving yourself repeated work go on and on and go much further than keeping your users in sync.

chicks
  • 3,915
  • 10
  • 29
  • 37
1

using OpenLdap is a good idea... It's almost used everywhere and + you can even use ldap to:

ml)

cheers, Julian

0

If your network is reasonably protected, using NIS is very simple to manage. NIS itself isn't very secure, but the setup is not at all complicated. I would also suggest exporting the home directories to all the other machines via nfs from the same server.

I've had several labs at work with the NIS/nfs setup and I can add, replace or upgrade machines and the users just log on like nothing ever changed - all their configs and files just show up no matter what machine they use.

AntEater
  • 41
  • 4