RE: question about access modes with nfs server 1.1.4
"ekkehard" <[email protected]> Tue, 18 Nov 2003 19:48:33 +0100
| Newsgroups | gmane.lisp.open-source.franz |
|---|---|
| Message-ID | <[email protected]> |
thanks, ahmon, now all works very well :-) regards Ekkehard -----Original Message----- From: Ahmon Dancy [mailto:[email protected]] Sent: Tuesday, November 18, 2003 6:50 PM To: [email protected] Cc: [email protected] Subject: Re: question about access modes with nfs server 1.1.4 >> hi, >> I have installed the nfs 1.1.4 on my W2000 Professional pc. >> I have exported one of my disks. >> >> then I mounted the exported volume from my Debia 3.1 client. >> >> I cann see the content of the exported volume, >> but I cannot create, delete or change files >> from my debian client >> >> I'm new to nfs and linux, >> so - perhapts anyone has an idea, >> what I'm doing wrong ? A full discussion of nfs and linux is beyond the scope of what we can do for you but here are some quick steps that may get you started. 1) Find out the user id number of the user you're doing operations with on the linux side. You can do this by running the 'id' command. If you're logged in as the 'root' user, the id number will be zero. 2) Edit nfs.cfg on the NFS server side and change the *nfslocaluid* parameter to the number obtained in step #1. Also, set the *nfs-set-mode-bits* parameter to #o666. 3) Restart the NFS server (after unmounting it on the linux side). You should now be able to do create, delete, and change files using on the linux side while logged in as that user. If you want to allow additional users to have write access, repeat step #1 for each user. Edit nfs.cfg and set the *nfs-rw-uids* parameter to a list of those user ids. For example, for just one additional user id, let's say id 150, you'd have: (*nfs-rw-uids* (150)) For ids 150 and 151, you'd have: (*nfs-rw-uids* (150 151)) To summarize, if you want user ids 0, 150, and 151 to have read/write access, you'll want these parameters in the nfs.cfg file: (*nfslocaluid* 0) (*nfs-set-mode-bits* #o666) (*nfs-rw-uids* (150 151)) Good luck.