LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-31-2009, 05:16 PM   #1
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Rep: Reputation: 15
Multiple Ltsp Servers, How to keep Documents per user the same?


I'm losing myself in thought about how to do this one.

The Scenario is that there will be Three Ubuntu Ltsp Servers with clients behind each (of course). Each server will have indentical logins (so that no matter what area someone goes to they can still login with their username and password. However I'm unsure how to link each server's users together so that their documents remain the same.

I though about a freenas server that could be used to store each user's
"home folder".(add three nic's to the freenas server).

Is there an easier way?
 
Old 08-31-2009, 06:23 PM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
the easiest way that i can think of is /home directories stored on a suitably large NFS server, which is mounted from each LTSP server in order to serve users home directories. I'm wondering how you are proposing keeping all user auth data in order, are you gonna use a LDAP server or something similar? It is the easiest way.

In my experience, the trick to setting up LTSP servers is to think of the LTSP servers as clients on both the LDAP directory server and NFS file server(s). The thin clients are getting 'everything' from the LTSP servers, so are dumb terminals.

Hope that makes sense!
 
Old 08-31-2009, 11:54 PM   #3
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
That makes sense

I'll do some research on "LDAP" and how to link it. Thanks for the heads up. Now i know what I'm sort of looking for.
 
Old 09-01-2009, 12:20 AM   #4
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
At the moment i have a testing ltsp server that boots clients and serves them the internet etc fine. However I can't seem to find a way to change their "home folder" from being on the server to my freenas server (for a testing enviroment)
 
Old 09-08-2009, 04:51 PM   #5
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
well, currently i'm guessing that the home folders are under /home in some shape or form? All you need to do is specify the users home directory on your freenas server, provided you have mounted the freenas server on your LTSP server filesystem.

So it goes like this:
Code:
mount /dev/freenas /home
and then your current users will be able to recreate new home directories, and as you add new users, their home directories will automatically be on the freenas server. I'm not familiar with freenas, but i presume it's linux/unix/bsd, so you will have conventional POSIX file permissions, and you are exporting some part of the filesystem via NFS.

BTW, sorry for not replying, earlier, seems my 'new posts' are not getting updated properly!

Last edited by irishbitte; 09-08-2009 at 04:54 PM.
 
Old 09-08-2009, 04:53 PM   #6
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Also, if the above works well for you, all you need to do to make it permanent is edit the /etc/fstab file on the LTSP server to automate the mount command.
 
Old 09-09-2009, 12:37 AM   #7
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
ah thanks!
i'll give that a go soon. You guys are awesome
 
Old 09-09-2009, 12:50 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could also have 3 home directories. Let's say /home1, /home2, /home3. On LTSP server one, /home1 is local, but on servers two and three it is an NFS mount. Likewise, on server 2, /home2 is local but /home1 and /home3 are mounts. User1 then has an entry in /etc/passwd with /home1/user1 as his home directory. User6 has /home2/user6. If the regular users' /etc/passwd and /etc/shadow file entries are the same for each LTSP server, you don't need to configure LDAP. The deciding factor may be on the number of users. The more users, the better LDAP looks.
 
Old 09-09-2009, 01:26 AM   #9
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
Ok that would help too.

I'm using freenas because it's easy to use (it is BSD based, and i can access it from anywhere),
There is an option to setup a "nfs server". Should i investigate that?

Here's a picture -- http://img90.imageshack.us/i/71168564.jpg/ --
 
Old 09-09-2009, 05:32 AM   #10
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
reply to jschiwal:
Quote:
You could also have 3 home directories. Let's say /home1, /home2, /home3
I wouldn't recommend this since it will confuse things down the line, and definitely will cause hassle because one machine will become a /home repository. Also makes things a pain to backup and restore.

To Silver565:
Quote:
There is an option to setup a "nfs server". Should i investigate that?
Yes, but I recommend reading some info on NFS first!
 
Old 09-09-2009, 06:16 PM   #11
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
Ok Cool. I'll do some googling on NFS.
Mounting a freenas drive via smb:// didn't work. So Nfs will be the way to go.
 
Old 09-09-2009, 06:51 PM   #12
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
I'm trying to follow this tutorial however i cannot seem to get it to work.

http://www.ubuntugeek.com/nfs-server...in-ubuntu.html

Am i on the right track with the "mounting manually" section?
 
Old 09-10-2009, 01:02 AM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Here's a good HOWTO explanation of NFS http://www.linuxhomenetworking.com/w...ccess_with_NFS

LDAP: http://www.linuxhomenetworking.com/w...DAP_and_RADIUS
 
Old 09-10-2009, 11:38 AM   #14
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 88
Quote:
Am i on the right track with the "mounting manually" section?
it's an ok tutorial, but basically it's the steps to get it working. I would suggest something a little more indepth. The problem with NFS is securing it, because basically all NFS exports are visible to all clients on the network, someone just has to emulate root in order to get full access, unless you set it up correctly. This: http://ubuntu-tutorials.com/2006/10/...buntu-606-610/ is not bad, not overly complex, but explains fairly neatly some of the options you may require.
 
Old 09-10-2009, 11:15 PM   #15
Silver565
Member
 
Registered: Jul 2007
Distribution: Ubuntu, Windows, Freenas
Posts: 96

Original Poster
Rep: Reputation: 15
Thanks, I'll give that a go
 
  


Reply



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
LTSP and shared user account Ogukan Linux - Server 2 02-25-2008 07:05 PM
Setting name servers on multiple servers centosfan Linux - Server 3 01-23-2008 03:43 PM
Multiple Blade servers booting from multiple disk drives simultaneously NGC_cheryl Linux - Enterprise 0 11-26-2007 08:38 AM
Help! Combine multiple .odt documents yuliang Linux - Desktop 1 01-18-2007 05:34 PM
Mount ext3 partition in /home/USER/Documents with read/write/execute acces for USER anonymous234 Linux - Hardware 2 01-12-2007 12:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration