problems writing to NFS shares
Subsystems (2)
Hi, I have a small home network with one file server and a couple of clients. I want to host /home on the server to be able to work from any client. however, I have trouble *writing* to the exported NFS share.
This seems mainly due to different user ids on client and server. But I thought this was handled by map_static ... Anyway, here's my setup:
server (10.0.1.3 aka hatchoum) setup is:
----------------------------------------
jakob@hatchoum:~$ uname -a Linux hatchoum 2.2.20 #1 Sat Apr 20 11:45:28 EST 2002 i686 unknown unknown GNU/Linux
jakob@hatchoum:~$ /usr/sbin/rpc.nfsd --version Universal NFS Server 2.2beta47
jakob@hatchoum:~$ cat /etc/passwd |grep jakob jakob:x:1000:33:Jakob,,,:/home/jakob:/bin/bash
jakob@hatchoum:~$ cat /etc/exports /home 10.0.0.0/255.255.0.0(rw,map_static=/etc/nfsuser.map)
jakob@hatchoum:~$ cat /etc/nfsuser.map # Mapping for client sleepy: # remote local uid 0-499 - # squash these uid 1000 500 # just me for the moment gid 100 33 # just the "users" group
jakob@hatchoum:~$ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda1 1968368 384564 1483812 21% / /dev/hdb5 5044128 985304 3802592 21% /mnt/rwstorage /dev/hdb7 5044156 276852 4511072 6% /home /dev/hdb6 5044156 720780 4067144 16% /projects /dev/hdb8 10080488 32828 9535592 1% /backup /dev/hdb9 14357980 2499132 11129500 19% /media
client (10.0.1.2 aka sleepy) setup:
-----------------------------------
/home/jakob> cat /etc/fstab | grep newhome
10.0.1.3:/home /newhome nfs defaults 0 0
/home/jakob> cd /newhome
/newhome> ls -l
total 24
drwxr-sr-x 11 4294967294 4294967294 4096 Nov 1 12:53 jakob
drwx------ 2 4294967294 4294967294 16384 Oct 22 18:09 lost+found
/newhome/jakob> touch test
touch: creating `test': Permission denied
/newhome/jakob> sudo touch test
touch: creating `test': Permission denied
I have trouble finding out whether the map_static option works. Also, what do these large uids and gids mean? What do I need to change in order to be able to use the /home directories on the server? I have spent the last couple of days RTFM, but with no real success, apart from learning that there are lots of different NFS versions out there, and support for features may differ.
Thanks for any help you may give,
Signature · 10 lines
Jakob. ------------------------------------------------------- This sf.net email is sponsored by: See the NEW Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en _______________________________________________ NFS maillist - [email protected] https://lists.sourceforge.net/lists/listinfo/nfs