[wplug] Writing to a NFS mount
Gentgeen
gentgeen at linuxmail.org
Sun Sep 14 09:02:54 EDT 2003
On Thu, 11 Sep 2003 23:20:16 -0400
Gentgeen <gentgeen at linuxmail.org> wrote:
Well, I fixed the problem myself. Thought I'd repost for posterity reasons. After mounting the NFS share, I did a ls -l on my /mnt/ directory. Seems the share was being mounted as UID 1000. For Debian (the NFS server), the UID of users start at 1000 and go up. On my Redhat Desktop (the NFS client), I am UID 501, since RH starts users at 500. (NOTE: My username was the same for both) So I just changed the UID and GID for my RH box:
groupmod -g 1000 kevin
usermod -g 1000 -u 1000 kevin
Now no problems. I know there is probably a better (read more correct) way to do this, but is works for my little home system.
> A little while ago, I set up a NFS share on my laptop. I used my
> desktop machine to edit some of the file, then forgot to unmount when I
> was done. I then had to do a forced unmount the next day when I
> realized my mistake.
>
> The problem is now I can mount the laptop drive, but I can not write to
> it anymore. I can mount, browse, and read the laptop drive, just not
> write to it. I can't remember all the things I had to do to set it up,
> so I am having some trouble with troubleshooting the problem. I also
> can't find the webpage that I used to help set it up (I thought I
> bookmarked it, but guess not)
>
> My desktop box is a Redhat 7.2 system at 192.168.0.2.
> The fstab line is:
> 192.168.0.4:/home/kevin /mnt/littlebox nfs rsize=8192,wsize=8192,timeo=14,intr,noauto,user 0 0
>
> rpcinfo -p 192.168.0.4 from my desktop gives:
> program vers proto port
> 100000 2 tcp 111 portmapper
> 100000 2 udp 111 portmapper
> 100024 1 udp 1024 status
> 100024 1 tcp 1024 status
> 100003 2 udp 2049 nfs
> 100021 1 udp 1026 nlockmgr
> 100021 3 udp 1026 nlockmgr
> 100005 1 udp 1027 mountd
> 100005 1 tcp 1025 mountd
> 100005 2 udp 1027 mountd
> 100005 2 tcp 1025 mountd
> ------------------------------------------
> My laptop is a Debian Woody 3.0 system at 192.168.0.4
> The hosts.allow file has:
> portmap: 192.168.0.3
> lockd: 192.168.0.3
> rquotad: 192.168.0.3
> mountd: 192.168.0.3
> statd: 192.168.0.3
>
> The hosts.deny file has:
> portmap:ALL
> lockd:ALL
> rquotad:ALL
> mountd:ALL
> statd:ALL
>
> The exports file has:
> /home/kevin 192.168.0.3(rw)
>
> rpcinfo -p localhost reports the same thing as noted above.
> ------------------------------
>
> That is all I can think of right now that would be of help, but if
> you need more, let me know.
>
> *****************************************************************
> Associate yourself with men of good quality if you esteeem
> your own reputattion; for 'tis better to be alone then in bad
> company. - George Washington, Rules of Civility
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
*****************************************************************
Associate yourself with men of good quality if you esteeem
your own reputattion; for 'tis better to be alone then in bad
company. - George Washington, Rules of Civility
More information about the wplug
mailing list