Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 1999 18:14:27 -0400
From:      Christopher Michaels <ChrisMic@clientlogic.com>
To:        "'vagner@WWW.TIMANDPATRICK.COM'" <vagner@WWW.TIMANDPATRICK.COM>
Cc:        "FreeBSD Questions (E-mail)" <questions@FreeBSD.org>
Subject:   RE: sharing drives
Message-ID:  <6C37EE640B78D2118D2F00A0C90FCB44011059CF@site2s1>

next in thread | raw e-mail | index | archive | help
One other thing I forgot to say... I don't suggest exporting you root /
partition with write access.

I would suggest, if you NEED / exported, export it as,
/ -ro -network 192.168.0

-Chris
> -----Original Message-----
> From:	Christopher Michaels [SMTP:ChrisMic@clientlogic.com]
> Sent:	Friday, June 18, 1999 6:09 PM
> To:	'vagner@WWW.TIMANDPATRICK.COM'
> Cc:	FreeBSD Questions (E-mail)
> Subject:	RE: sharing drives
> 
> Almost, what happens with FreeBSD NFS exports, is that it doesn't export
> mounted directories.  SO.. lets say your file system consists of
> partitions
> mounted on /, /usr, /var
> 
> If you have the below /etc/exports.  when someone tries to cd to /usr they
> will see an empty directory.  You have 2 choices depending upon what
> exactly
> you want to do.  (I don't believe you need the maproot btw).
> 
> / -network 192.168.0
> /usr -network 192.168.0
> /var -network 192.168.0
> 
> Now, here's the thing.  You may not need the -alldirs option.  Again, lets
> assume that you have /, /usr, and /var.
> 
> What happens is without the -alldirs option, you can't specifically mount
> to
> a dir under the mount point, e.g. you can't mount /usr/local/etc, you have
> to mount /usr.  You can still cd to /usr/local/etc just can't specifically
> mount to it. (Hope this makes sense).
> 
> You don't need the -maproot because root is root.  -maproot would be
> useful
> if you wanted to give a specific "non-root" user root access to that NFS
> share.  Such as -maproot=foo, would give user foo root access to that file
> system.
> 
> -Chris
> 
> 
> > -----Original Message-----
> > From:	vagner@WWW.TIMANDPATRICK.COM
> [SMTP:vagner@WWW.TIMANDPATRICK.COM]
> > Sent:	Friday, June 18, 1999 5:49 PM
> > To:	Christopher Michaels
> > Subject:	RE: sharing drives
> > 
> > I want to mount the whole drive on another machine and have
> > read and write permissions like anyone else.
> > 
> > can i do this on the server
> > 
> > / -alldirs -maproot=root 192.168.0
> > 
> > 
> > 
> > On 18-Jun-99 Christopher Michaels wrote:
> > > NFS is actually pretty easy.  You'll want to read the exports man page
> > to
> > > find out how to setup your /etc/exports file.
> > > 
> > > Then you'll want to enable NFS in your /etc/rc.conf
> > > 
> > > On the 'client' machine all you have to do to mount the NFS dir is
> mount
> > -t
> > > nfs server:/dir /mount_point.  These can also be added your /etc/fstab
> > so
> > > that they are mounted at startup.
> > > 
> > > A VERY simple /etc/exports that shares /usr to everyone on network
> > 10.0.0.x
> > > would look like.
> > >       /usr -network 10.0.0
> > > 
> > > 
> > > In your fstab you would then have... (this is from memory and may not
> be
> > > 100%, as I'm not at home).
> > >       server:/usr     /mnt    nfs     rw      0       0
> > > 
> > > 
> > > 
> > > If you want to be able to mount a dir dir within a specific partition
> > then
> > > you would need to add the -alldirs option to your /etc/exports file.
> > > 
> > > Hope this makes some sense,
> > > Chris
> > > 
> > > 
> > >> -----Original Message-----
> > >> From:        vagner@WWW.TIMANDPATRICK.COM
> > [SMTP:vagner@WWW.TIMANDPATRICK.COM]
> > >> Sent:        Friday, June 18, 1999 4:01 PM
> > >> To:  Christopher Michaels
> > >> Cc:  questions@freebsd.org; vagner@WWW.TIMANDPATRICK.COM
> > >> Subject:     RE: sharing drives
> > >> 
> > >> crap i new you would say NFS, I know absolutely
> > >> NOTHING about NFS...
> > >> 
> > >> yes i wanted freebsd > freebsd
> > >> 
> > >> 
> > >> Where do you suggest I start Learning on how to
> > >> set up NFS.
> > >> 
> > >> what program or method do i use to connect
> > >> drives?
> > >> 
> > >> FTP is getting old..
> > >> 
> > >> 
> > >> 
> > >> 
> > >> On 18-Jun-99 Christopher Michaels wrote:
> > >> > Not quite sure what you want to do..  If I understand you so far..
> > you
> > >> have
> > >> > samba setup and have the following working.
> > >> > 
> > >> >       FreeBSD --> Windows
> > >> > 
> > >> > Now, do you want to do 
> > >> >       Windows --> FreeBSD
> > >> > or
> > >> >       FreeBSD --> FreeBSD
> > >> > ?
> > >> > 
> > >> > If you want the 1st option, you're looking for sharity-light.
> Rumba
> > was
> > >> > renamed.
> > >> > If you're looking for the 2nd option, I would strongly suggest NFS
> > over
> > >> > screwing around with samba/sharity-light.
> > >> > 
> > >> > 
> > >> >> -----Original Message-----
> > >> >> From:        vagner@WWW.TIMANDPATRICK.COM
> > >> [SMTP:vagner@WWW.TIMANDPATRICK.COM]
> > >> >> Sent:        Friday, June 18, 1999 3:04 PM
> > >> >> To:  questions@freebsd.org
> > >> >> Subject:     sharing drives
> > >> >> 
> > >> >> i installed samba on my server machine 
> > >> >> and can connect to it just fine with windows 3.1/98 
> > >> >> just fine, but how do i connect to it in freebsd?
> > >> >> 
> > >> >> i think i used Rumba before but i cant find it
> > >> >> anymore.
> > >> >> 
> > >> >> anything else easier?
> > >> >> 
> > >> >> ----------------------------------
> > >> >> E-Mail: vagner@vagner.com
> > >> >> Date: 18-Jun-99
> > >> >> Time: 12:02:17
> > >> >> How long a minute is depends on which side of the bathroom door
> > you're
> > >> >> on.
> > >> >> 
> > >> >> This message was sent using FreeBSD Unix.
> > >> >> ----------------------------------
> > >> >> 
> > >> >> 
> > >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org
> > >> >> with "unsubscribe freebsd-questions" in the body of the message
> > >> 
> > >> ----------------------------------
> > >> E-Mail: vagner@vagner.com
> > >> Date: 18-Jun-99
> > >> Time: 12:57:33
> > >> Five is a sufficiently close approximation to infinity.
> > >>                 -- Robert Firth
> > >> 
> > >> This message was sent using FreeBSD Unix.
> > >> ----------------------------------
> > >> 
> > >> 
> > >> To Unsubscribe: send mail to majordomo@FreeBSD.org
> > >> with "unsubscribe freebsd-questions" in the body of the message
> > 
> > ----------------------------------
> > E-Mail: vagner@vagner.com
> > Date: 18-Jun-99
> > Time: 14:46:28
> > Please ignore previous fortune.
> > 
> > This message was sent using FreeBSD Unix.
> > ----------------------------------
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


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?6C37EE640B78D2118D2F00A0C90FCB44011059CF>