LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   permission denied when mounting nfs directory (https://www.linuxquestions.org/questions/linux-networking-3/permission-denied-when-mounting-nfs-directory-12864/)

keirobyn 01-28-2002 02:40 AM

permission denied when mounting nfs directory
 
When trying to mount a directory off a test nfs server I have, I get a permission denied error:

[root@localhost disk]# mount 200.200.200.249:/usr/export /mnt/disk
mount: 200.200.200.249:/usr/export failed, reason given by server: Permission de
nied


I have created a /usr/export folder and created a one line file at /etc/exports that says simply:

/usr/exports (rw)

I'm logged in as root on both computers. This should be simple, what am I doing wrong?
:newbie:

theFuzzyOne 01-28-2002 08:21 AM

is the nfs deamon running? do you have the permissions of /usr/export set to allow anyone to read and exe.? (755, or something like that). also, check you /etc/hosts.allow and hosts.deny

keirobyn 01-28-2002 07:30 PM

Stupid error on my part. I had created a directory called at /usr/export but put /usr/exports (with an s) in the /etc/exports file. After correcting that it works ok.

Next problem - can't mount the NFS servers cdrom. (mount 200.200.200.249:/mnt/cdrom /mnt/disk)

When I give this command, it looks like it has mounted no error) and is visible if I give a mount command, however, if I cd /mnt/disk and then ls, the hardrive on the client spins for about a minute then returns 'ls: Memory exhausted'. What's up with that?

I have put this line in the /etc/exports file:
/mnt/cdrom (ro)

and did a exportfs -ra

I have a cd in the drive.

I have many cdromless clients that, so I am trying to figure out away to share the servers cdrom. the clients are old (P133 with 32mb running mandrake 7.1), but they seem to work ok with local cdroms and in general.

keirobyn 01-29-2002 12:43 AM

More reading revealed that supermount is not compatible with NFS. (Mandrake how to's)


All times are GMT -5. The time now is 12:36 AM.