Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using a remote directory as a home directory
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Harpalus
n00b
n00b


Joined: 16 Oct 2002
Posts: 26

PostPosted: Tue Sep 02, 2003 3:38 pm    Post subject: Using a remote directory as a home directory Reply with quote

Hi all,

I am trying to setup the following system and I am having trouble deciding on an approach:

I have a server that contains my home directory (including documents and my config files). I would like to be able to use that that directory as my home directory from another system. i.e. I login into my computer at work and it mounts the home directory on my server for config files and documents.
Any ideas/suggestions. Security is an important consideration since all traffic will go through the open internet.

Thanks
_________________
-----------
Never argue with an idiot, he will bring you down to his level and proceed to beat you with experience.
Back to top
View user's profile Send private message
asph
l33t
l33t


Joined: 25 Aug 2003
Posts: 741
Location: Barcelona, Spain

PostPosted: Tue Sep 02, 2003 3:45 pm    Post subject: why? Reply with quote

can i ask why?
I mean you can just copy it, and then syncronize the two home dirs.. like rsync'ing.
If you still want to do it, you can do it with NFS or SHHFS, just get some docs or search the forum for info, there are lots of tutorials.
_________________
gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep
Back to top
View user's profile Send private message
MrPyro
Tux's lil' helper
Tux's lil' helper


Joined: 14 Aug 2003
Posts: 121
Location: Sheffield, England

PostPosted: Tue Sep 02, 2003 3:48 pm    Post subject: Reply with quote

The easy way to do this would be NFS

One question first though: when you say you want to have this home directory exported to whatever machine you are working on, are we talking just over a LAN or over the internet? Maybe it's just the way I've read your post that makes me think the server is at home and you want to get your home directory at work, but if this is the case, be warned that many people consider this a huge security risk, no matter what technique you use.

Anyway, NFS.

http://en.tldp.org/HOWTO/NFS-HOWTO/

This is a remarkably good guide to configuring NFS, both server and client side. The only things this doesn't cover is

1) how to get the server and client daemons for gentoo
Code:
emerge nfs-utils


2) how to start the daemons under gentoo
Code:
/etc/init.d/nfs start

for the server
Code:
/etc/init.d/nfsmount start

for the client. The can obviously be rc-update added to run at boot
_________________
Back off man, I'm a computer scientist
Back to top
View user's profile Send private message
Harpalus
n00b
n00b


Joined: 16 Oct 2002
Posts: 26

PostPosted: Wed Sep 03, 2003 4:02 am    Post subject: Reply with quote

Thanks for the quick reply,

I have looked at NFS, shfs, lufs, samba, ssh, ipsec etc and all different combinations possible.
The key problem I am having trouble with is getting the home directory mounted at login and only mounting that user's directory. Most setups I have seen mount the entire /home tree. I figure if I only mount the home directory of the user logging in and do so over an encrypted channel with a strong authentification system it should be very secure. Any idea on how you go about mounting a users home directory at login using the infromation provided during the login.

Thanks
_________________
-----------
Never argue with an idiot, he will bring you down to his level and proceed to beat you with experience.
Back to top
View user's profile Send private message
asph
l33t
l33t


Joined: 25 Aug 2003
Posts: 741
Location: Barcelona, Spain

PostPosted: Wed Sep 03, 2003 8:04 am    Post subject: another solution Reply with quote

another way to acomplish that would be autoFS or AMD automounter
after some reading, i think that'd be the easiest way :)

"autofs is a kernel-based automounter for Linux. It performs a job similar to amd but relies on a small stub of kernel code instead of pretending to be an NFS server. The result is simpler code, better reliability, and much faster operation in the common case (everything already mounted). Autofs 4 adds support for automounting trees of exported filesystems via /net."

http://freshmeat.net/projects/autofs/?topic_id=142
http://www.linuxhq.com/ldp/howto/Automount-1.html
http://www.fokus.gmd.de/linux/HOWTO/mini/pdf/Automount.pdf

good luck!
_________________
gentoo sex is updatedb; locate; talk; date; cd; strip; look; touch; finger; unzip; uptime; gawk; head; emerge --oneshot condom; mount; fsck; gasp; more; yes; yes; yes; more; umount; emerge -C condom; make clean; sleep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum