LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   need some general help with remote logins (https://www.linuxquestions.org/questions/linux-networking-3/need-some-general-help-with-remote-logins-420436/)

felixnine 02-28-2006 06:32 PM

need some general help with remote logins
 
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.

(Debian Etch Beta 1)

Thanks,
Andrew

sewer_monkey 02-28-2006 10:05 PM

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.

pvs 03-01-2006 02:51 AM

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.

felixnine 03-01-2006 11:57 AM

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.

asgeirss 03-01-2006 02:48 PM

Try using NIS for centralized logins
 
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.

Check out the following step-by-step tutorial:

http://www.linuxhomenetworking.com/linux-adv/nis.htm

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.

Hope this helps.
- Dave Asgeirsson

felixnine 03-01-2006 04:20 PM

Fantastic. I just used that tutorial and everything's working just as I had envisioned. Thanks very much.

Andrew


All times are GMT -5. The time now is 08:15 AM.