Networking Forums

Networking Forums > Computer Networking > Linux Networking > NFS and map_static

Reply
Thread Tools Display Modes

NFS and map_static

 
 
poopdeville@gmail.com
Guest
Posts: n/a

 
      10-14-2005, 12:42 AM
Hi everybody,

I'm attempting to set up two distinct NFS exports on a box running
Debian Testing. Both are to be accessed exclusively by a single host:

# /etc/exports: the access control list for filesystems which may be
exported
# to NFS clients. See exports(5)

/home/poop/Public 192.168.2.1(rw, insecure,
map_static=/etc/nfs/poop.map)
/home/poop 192.168.2.1(rw, insecure,
map_static=/etc/nfs/poop.map)
/var/www 192.168.2.1(rw, insecure,
map_static=/etc/nfs/www.map)
/usr/lib/cgi-bin 192.168.2.1(rw, insecure,
map_static=/etc/nfs/www.map)

Here is my poop.map:

# This file maps remote identifiers to local identifiers.
# remote local

uid 501 1000
gid 501 1000

And my www.map:

# This file maps remote identifiers to local identifiers.
# remote local
uid 501 33
gid 501 33

Basically, what I'm trying to do is log into my /usr/lib/cgi-bin
directory remotely so that I can easily edit some files I'm working on
(and test them without having to transfer them over and over). As
configured, this works great. However, as configured, I can't write to
my home directory, which is a pain in the ass. Does anyone have any
suggestions?

Thanks,
'cid 'ooh

 
Reply With Quote
 
 
 
 
Antoine EMERIT
Guest
Posts: n/a

 
      10-15-2005, 08:07 PM
(E-Mail Removed) écrivait news:1129250544.343417.231910
@g43g2000cwa.googlegroups.com:
> Basically, what I'm trying to do is log into my /usr/lib/cgi-bin
> directory remotely so that I can easily edit some files I'm working on
> (and test them without having to transfer them over and over). As
> configured, this works great. However, as configured, I can't write to
> my home directory, which is a pain in the ass. Does anyone have any
> suggestions?


Did you check the owner and rights on your mount point (on the client side)
?

Did you mount the share in "rw" mode ?


Regards
 
Reply With Quote
 
poopdeville@gmail.com
Guest
Posts: n/a

 
      10-16-2005, 03:23 AM

Antoine EMERIT wrote:
> (E-Mail Removed) écrivait news:1129250544.343417.231910
> @g43g2000cwa.googlegroups.com:
> > Basically, what I'm trying to do is log into my /usr/lib/cgi-bin
> > directory remotely so that I can easily edit some files I'm working on
> > (and test them without having to transfer them over and over). As
> > configured, this works great. However, as configured, I can't write to
> > my home directory, which is a pain in the ass. Does anyone have any
> > suggestions?

>
> Did you check the owner and rights on your mount point (on the client side)
> ?
>
> Did you mount the share in "rw" mode ?
>
>
> Regards


I double-checked, and it still isn't working. I mounted my (remote)
home directory and ls -al reported that all of the files contained in
it were owned by "nobody." I mounted my (remote) /usr/lib/cgi-bin
directory and ls -al reported at each of the files was owned by my
current local user. So UID/GID mapping *is* working for the cgi-bin
directory.

I changed the order in which exports were declared in /etc/exports, so
that the declaration sharing my home directory came after
/usr/lib/cgi-bin, but the behavior remains broken. If I comment out
the declaration for the remote cgi-bin directory (in /etc/exports), I
*can* write to my home directory. ls -al reports that my current local
user owns the remote files. I think my nfs server just doesn't like
multiple map files. :-(

Thanks for your suggestions.

'cid 'ooh

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




1 2 3 4 5 6 7 8 9 10 11