LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2008, 10:28 PM   #1
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Rep: Reputation: 15
moving home directories of users onto remote machine


hi friends..

this is what i am trying to do...

everytime i create a user on one linux machine , i want the home directory of that machine to be created onto a remote machine...ie i want the user to use the hdd space of the remote machine running another linux os..


is it possible?? how?
 
Old 04-26-2008, 10:44 PM   #2
Tischbein
Member
 
Registered: Oct 2006
Distribution: debian
Posts: 124

Rep: Reputation: 15
I imagine you just set up a filesystem such as nfs or samba on the remote machine and mount it as /home on the local machine.

Regards, Tischbein.
 
Old 04-27-2008, 01:11 PM   #3
shishirkotkar
Member
 
Registered: Sep 2007
Posts: 83

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Tischbein View Post
I imagine you just set up a filesystem such as nfs or samba on the remote machine and mount it as /home on the local machine.

Regards, Tischbein.
can you plz tell me how do i do that?
 
Old 04-27-2008, 03:20 PM   #4
danboland
Member
 
Registered: Feb 2006
Location: NJ, USA
Distribution: Debian
Posts: 72

Rep: Reputation: 17
Setting up an NFS is fairly straightforward.


Some of the installation procedures might be system dependent, various Linux distribution and BSD install program differently. So make sure you and your host install NFS version 3 and the nfs−utils package. You will also need the services portmap, lockd, and statd running. (most linux distributions have these running by default)

In order to get it to work you have to configure both servers. In the following i will refer to the server which will house your content as the Server with address master.domain.com, and the server with Carma that you will mouth the NFS share on as the Client with address slave.domain.com. You should adjust the host names and domain name to the real names. You could also use IP addresses.

There is only one file an NFS server: /etc/exports. You should also edit /etc/hosts.allow and /etc/hosts.deny to make your server more secure.

on the NFS Server, you should put this into the /etc/exports file:

/home slave.domain.com (rw)

this will allow your NFS server to share it's directory /home with the server slave.domain.com, it will also give the share read and write permissions.

Now, to mount this share on the Client, we issue this command:

mount master.domain.com:/home /home

Once you are sure everything is working, you can set up the share to mount automatically at boot by editing /etc/fstab with something like this:

# device mountpoint fs-type options dump fsckorder
...
master.domain.com:/home /home/ nfs rw 0 0
...

please check the man pages for exact syntax for your system (but the above should work)

You may also have to mess around with the uid and gid (sometimes they have to be the same on both servers)

Also dont forget to set up hosts.deny and hosts.allow to properly secure this share. For more information on NFS you can look at the following documentation:

http://nfs.sourceforge.net/nfs-howto/




Dan
 
  


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
moving home directories of ltsp users on another machine shishirkotkar Linux - Networking 0 04-26-2008 10:24 PM
creating home directories on different machine.. shishirkotkar Linux - Newbie 3 04-25-2008 01:21 PM
Moving Home directories to a new hard drive kenneth.ramsey Debian 5 09-12-2006 05:40 AM
An easy way of moving /home and other directories 1kyle SUSE / openSUSE 1 09-23-2005 03:53 AM
How to bind users to their home directories? trees Linux - Security 6 09-16-2004 06:32 PM


All times are GMT -5. The time now is 04:27 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration