Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Dec 2002 19:18:01 +0100 (CET)
From:      Marcel Stangenberger <marcel@hayholt.org>
To:        Shantanu Mahajan <shantanoo+fbsd@ieee.org>
Cc:        RD <unixnoob@charter.net>, <freebsd-questions@freebsd.org>
Subject:   Re: nfs help plz
Message-ID:  <20021216191242.A76036-100000@moredhel.hayholt.org>
In-Reply-To: <20021215200937.GA528@mahajan.homeunix.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 16 Dec 2002, Shantanu Mahajan wrote:

> +++ RD [freebsd] [14/12/02 22:02 -0500]:
> | hi guys ,
> |     i'm trying to make one of my boxes a file server, ftp server, and mysql
> | ....
> | i'm running apache on box #2...
> |
> | now i need to mount my users dir on box 2 from box 1....
> |
> | i can't seem to make it work from freebsd handbook.....
> |
> | any step by step links?
> | tx
> | RD
> |
> | ------------------------------
> 	First take care that both boxes have a a user with same name and uid. And try to share it. Hope this will solve your prob. as I faced the similar one when I tried to use nfs.
>

create and compile a kernel with

options		NFS

on both machines

then edit the file /etc/exports on the machine that needs to share the
directory, and add the line :

/usersdir -ro <ip of client>

add the -ro to share read only. if read write then use
-maproot=<uid>:<gid>

after this do a killall -HUP mountd

and then login to the client and type
mount -t nfs <ip of server>:/userdir /mnt

you can change /mnt in any other directory.

this should be all you need to do to set up an NFS system.

Marcel


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021216191242.A76036-100000>