This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems with NFS server

> > On Thu, 2006-06-15 at 15:36 +0200, Nicolas Boudin wrote:
> > > Hello,
> > > 
> > > I am trying to export via NFS a cygwin directory as a root 
> > > filesystem for an embedded Linux system (I hope it can work..)
> > 
> > It should - that's the whole reason I ported it for cygwin in 
> > the first place :-)
> This is encouraging. :)
> > Could you post your /etc/exports file, please?
> I gave the only uncommented line from this file, that is:
> /usr/src/buildroot-20060308/build_arm/root,no_root_squash)
> If I try to mount a random directory, like just /usr, I get the expected result that it is blocked:
> Root-NFS: Server returned error -13 while mounting /usr/


  Could you please try adding a map_static directive to your exports?
It should then look something like this:


  If you ran the nfs-server-config script to set up the nfs-server, then
you should already have an /etc/nfs/ file that was created for
you by the setup script.  If not, you can create it, with the following

----- CUT -----
# Sample server map for nfsd
# This file maps 500/500 on an NFS client to the uid/gid of the
# user who ran nfs-server-config, and maps 0/0 on an NFS client
# the uid/gid of the Administrator account.
# Note that a server map is host-specific (which makes sense,
# if you think about it...)  So you can only use a plain IP
# address or DNS name to specify a client that uses a static_map.
# Examples of valid /etc/exports lines using map_static:
#   /gaunt
#   /chaney  twilley(map_static=/etc/nfs/
uid     500     xxxxx   # user id - replace 'xxxxx'
gid     500     yyyyy   # group id - replace 'yyyyy'
uid     0       500     # user id for Administrator
gid     0       513     # group id for Administrator
----- CUT -----

  If you're having to create the for your export by hand, you
will have to replace 'xxxxx' with the number reported by 'id -u
${USERNAME}' and 'yyyyy' with the number reported by 'id -g
${USERNAME}', ex:

  $ id -u ${USERNAME}
  <use this number to replace xxxxx in the above server.amp file>
  $ id -g ${USERNAME}
  <use this number to replace yyyyy in the above server.amp file>


Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]