LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-25-2008, 02:10 AM   #1
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Rep: Reputation: 30
Simple central authentication service for two desktop systems


Hi,

I'm looking for a simple way to use same login information for two Linux boxes. The scenario is like this:

- "Server" is a server/desktop that shares internet connection with "Desktop"
- "Desktop" has no user accounts (yet)
- "Server" should contain all user login information
- "Server" should have all user home directories (/home)
- Both "Server" and "Desktop" will be running Debian Lenny

Now I know I can accomplish all this the "hard way" like this:

- Configure a LDAP server on "Server"
- Migrate existing user information to the LDAP server
- Configure "Desktop" to authenticate from "Server's" LDAP
- Mount "Server's" /home to "Desktop's" home with NFS

Now my question:

Is there a simpler way to do central authentication on two machines? LDAP server seems like a overkill... syncing perhaps? Any experiences with that?
 
Old 09-25-2008, 10:26 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
NIS:

http://www.tldp.org/HOWTO/NIS-HOWTO/index.html

and, NFS:

http://www.tldp.org/HOWTO/NFS-HOWTO/index.html

Is exactly what you need.
 
Old 09-27-2008, 09:11 AM   #3
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Lenny/Squeeze/Wheezy/Sid
Posts: 4,062

Rep: Reputation: 491Reputation: 491Reputation: 491Reputation: 491Reputation: 491
You can have NIS set up in 30 minutes when you read the howto. NIS is lightweight, and by no means overkill.

What is important to remember:

- you have to edit /etc/passwd and /etc/group on "Desktop" to indicate that user names and passwds are to be retrieved from NIS.

- After adding user names on Server you have to run Make in the YP directory so the changes are reflected in NIS. I found that this is not done adequately by the scripts after using adduser, and the documentation does not emphasize on this.

And my NIS server is still Sarge, maybe matter has improved in Lenny since.

NFS is standard for file sharing, and very easy as well. Just carefully study the man page for 'exports'.

jlinkels
 
Old 09-27-2008, 09:58 AM   #4
basileus
Member
 
Registered: Nov 2004
Location: Turku, Finland
Distribution: Debian, Ubuntu, Gentoo
Posts: 388

Original Poster
Rep: Reputation: 30
Thanks Steve and jlinkels!

I'll try NIS. I'm already familiar with NFS so that not a problem.

I'll post a short howto here when I'm done.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Central authentication veeruk101 Linux - General 2 07-20-2007 07:51 AM
Setting up Central Authentication System logosys Linux - Networking 1 03-03-2006 06:48 AM
Central Authentication for SAMBA Matir Linux - Software 2 01-28-2005 04:16 PM
user authentication from central computer uros678 Linux - General 5 02-19-2004 12:48 AM
domain style central user authentication MadTurki Linux - Networking 2 01-26-2004 10:26 AM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration