Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
So I work in this lab and we have a small network setup, which is currently only two computers strong but will soon be four. That doesn't really matter. Anyway, the Computer Science department has one Linux lab on campus where everything's done remotely. That is, when you login, it's authenticated remotely and then your home directory from a central server is mounted at /home. I've got no idea how to accomplish this. I've done some research and found Kerberos and RADIUS. Kerberos seems a little too involved for what we're doing, plus it scares me. I know RADIUS isn't technically meant for this kind of thing, but the documentation I've read says that it will work fine. I installed FreeRadius on the server, but haven't gotten a chance to try it. But assuming this still works, how do I mount a remote home directory?
Honestly, I would love to just use SSH somehow, perhaps in conjunction with sshfs or something, but again, I've got no idea how to actually force a remote login or anything. It would be great if someone could just point me in the right direction.
Why not just NFS share the home directories and keep them permanently mounted on all the clients? A lot less involved than Kerberos/RADIUS and probably less prone to failure.
you can try to setup PAM to use pam_mount module for mounting remote shares as home directory and pam_mysql or pam_dbpasswd for authentication if you don't want to dig in kerberos, ssl, ldap etc.
I did the NFS mount thing, and that's fine. What I don't want to do, however, is have to create accounts on every workstation. I don't really feel that comfortable using pam-mysql, but even if I did, how would I go about telling the clients to authenticate against a MySQL server on a remote machine? Isn't there a (secure) way to have the client's login program authenticate against /etc/passwd on the server? I thank you both for your help, but I'm still rather lost.
What is recommended for use in this situation, is called NIS - Network Information Services. It lets you have centralized accounts and logins on the server, and you don't need to create users on each machine.
Just for reference, in our lab with 8 computers, we just set up the accounts by hand on each machine, since there are only new users added about once every 4 months at most. Of course if you are adding or changing users more frequently, or have a lot more machines to configure, then NIS will do it all for you.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.