LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-11-2009, 12:14 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
having same directory while on different machines


I set up a small network without any bells and whistles, and I'm going in and out of the different machines using ssh. My $HOME directories on each machine is different, and I wanted to have just one home directory.

Any helpful suggestions? NFS is the way to go, yes? I have ensured that the usernames on all machines are the same.

So, I reckon, just set up NFS to share main machines $HOME with the other machines, and on each of the other machines symlink it $HOME directory to main machine.

The disadvantage is that if the main machine is not on, the system brakes down of course, but a little script will be able to check for that.

Any further suggestions? Many thanks in advance.
 
Old 04-12-2009, 04:59 AM   #2
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
I'd suggest creating a directory under $HOME, and sharing this. Your home folder contains many config files (in hidden directories) which will need to be available if the filesystem is not mounted, and the settings in these may need to be different for different installs.


Last edited by Robhogg; 04-12-2009 at 05:36 AM. Reason: Correction: home should have been $HOME / home folder
 
Old 04-12-2009, 05:28 AM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Look into autofs - it will only mount the relevant home directory when it's required.
 
Old 04-12-2009, 06:02 PM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
thanks guys!!
 
Old 04-12-2009, 06:19 PM   #5
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 run into a problem if you are logged into more than one machine at once using the same desktop environment because two instances may try to update the same configuration file. If the server may not be running, then be sure to use the `user' & `_netdev' mount options in /etc/fstab. This will prevent a boot failure due to the server being down. With the `user' option, you can mount it as a regular user.
 
  


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
Username & Password Sync Fedora Directory and Microsoft Active Directory karnac01 Fedora 4 07-19-2010 12:51 AM
change default vsftp anonymous accout directory /var/ftp to other directory? hocheetiong Linux - Newbie 2 01-24-2010 06:33 PM
LXer: Directory services made easy with Fedora Directory Server LXer Syndicated Linux News 0 12-08-2006 03:54 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
can see other machines, but other machines can't see me with TPC/IP egomez Linux - Networking 8 04-28-2006 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:20 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
Open Source Consulting | Domain Registration