LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS question (https://www.linuxquestions.org/questions/linux-networking-3/nfs-question-256035/)

sassman 11-17-2004 11:28 AM

NFS question
 
All,
First time poster here, but I have not seen this question answered previously, so here goes. I have a system that exports the /home directory. I then mount this via nfs on the client systems so that any user can access their home directories from any linux client. I just added a new drive array that I mounted as /home/workspace for users to put their output or other files that don't need to be backed up. When I go to one of the clients, I can see the /home/workspace directory, but there is nothing in it and cannot create files or directories. If I log on as them on the NFS server, I can create directories, etc, so it is a not a permissions problem, but on the NFS clients, I get the following message :

mkdir: cannot create directory `test': Permission denied

We use NIS on all the systems, so it is not a problem with the UID or anything. I am running redhat 7.3 (yes, old). Here are the entries from the NFS server in /etc/fstab

/dev/sdb1 /home ext3 defaults 1 2
/dev/sdc1 /home/workspace ext3 defaults 1 2

I know there is a problem with exporting subdirectories of exported file systems, but I didn't think it applied to physically mounted volumes. Any suggestions on what I am doing wrong?

Mark

Mr_Munkey 11-17-2004 11:43 AM

I'm having almost exactly the same problem. I'm using MDK 10.0 as the server and another MDK 10.0 as the client. I can mount /home just fine, but when I try to delete, change, or add a file I get permission denied, even though I've specified read-write access. I can perform those functions just fine on the server though.

Mr_Munkey 11-17-2004 12:02 PM

I just noticed something, and wanted to see if it was the same on your computer. In /var/log/syslog I'm getting the following error:

Nov 17 10:39:35 linuxbox kernel: nfs warning: mount version older than kernel

Are you getting that?

sassman 11-17-2004 12:18 PM

Nope. I don't have any of those messages in my /var/log/messages.


Mark

Mr_Munkey 11-17-2004 12:24 PM

Okay, call me dumb. I was doing all this as root. After logging in as myself I was able to access the file share. If you want root to have access, you can specify no_root_squash in the /etc/exports file along with rw, but then only root has access.

Hope some of this info might help.


All times are GMT -5. The time now is 09:23 PM.