niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » BSD » NetBSD
NFS
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Ronny Mandal Ronnyma
*nix forums beginner


Joined: 18 Jun 2006
Posts: 13

PostPosted: Thu Jun 29, 2006 1:31 pm    Post subject: NFS Reply with quote

What is wrong with this? I can connect to the first mp, but gets a
permission denied when trying to mount the second. When I apply the
-alldirs to the latter, the mp will not be accepted by the server initially.

/etc/exports:
/home -network 192.168.1.0 -mask 255.255.255.0 -mapall=root:wheel -alldirs
/usr/local/apache2/htdocs -network 192.168.1.0 -mask 255.255.255.0
-mapall=root:wheel

[ronnyma@sniffedata]/home/ronnyma(10): showmount -e
Exports list on localhost:
/usr/local/apache2/htdocs 192.168.1.0
/home 192.168.1.0

Home can be mounted by a host in 192.168.1, but /usr... cannot.


Thanks,

Ronny Mandal
Back to top
Tim Judd
*nix forums beginner


Joined: 06 Jun 2006
Posts: 19

PostPosted: Thu Jul 20, 2006 12:36 am    Post subject: Re: NFS Reply with quote

Ronny Mandal wrote:
Quote:
What is wrong with this? I can connect to the first mp, but gets a
permission denied when trying to mount the second. When I apply the
-alldirs to the latter, the mp will not be accepted by the server
initially.

/etc/exports:
/home -network 192.168.1.0 -mask 255.255.255.0 -mapall=root:wheel -alldirs
/usr/local/apache2/htdocs -network 192.168.1.0 -mask 255.255.255.0
-mapall=root:wheel

[ronnyma@sniffedata]/home/ronnyma(10): showmount -e
Exports list on localhost:
/usr/local/apache2/htdocs 192.168.1.0
/home 192.168.1.0

Home can be mounted by a host in 192.168.1, but /usr... cannot.


Thanks,

Ronny Mandal

because "/usr" alone wasn't exported? the -alldirs is not defined, so
what's exported to the network is /usr/local/apache2/htdocs (and /home)
specifically.

I'm new to NetBSD, but I'm familiar with OpenBSD and FreeBSD. I'm
guessing here, but educated guessing.

Please correct me if I'm wrong, but I've played with NFS on OpenBSD and
FreeBSD enough to get a general idea of what might be wrong.

Suggestion:

export /home and /usr (or /usr/local if that's how it's setup in fstab) only

define -alldirs for both
(BTW, the exports file has generally been defined as <exporeted fs>
<options> <allowed hosts> --- you have it as <exported fs> <allowed
hosts> <options> -- but your exported filesystems seem to come out OK).


when changing /etc/exports, you'll probably need to send a sighup to one
of the NFS daemons.

Good luck, HTH
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Thu Nov 20, 2008 11:20 pm | All times are GMT
navigation Forum index » *nix » BSD » NetBSD
Jump to:  


Dutch Bodybuilding Forums | Free Ringtones | Die Casting Company | Free Advertising | Credit Report
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1394s ][ Queries: 11 (0.0721s) ][ GZIP on - Debug on ]