LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-28-2002, 02:40 AM   #1
keirobyn
Member
 
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Rep: Reputation: 15
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?
 
Old 01-28-2002, 08:21 AM   #2
theFuzzyOne
Member
 
Registered: Dec 2001
Distribution: redhat
Posts: 154

Rep: Reputation: 30
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
 
Old 01-28-2002, 07:30 PM   #3
keirobyn
Member
 
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Original Poster
Rep: Reputation: 15
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.
 
Old 01-29-2002, 12:43 AM   #4
keirobyn
Member
 
Registered: Dec 2001
Location: China
Distribution: Mandrake 7.2 and 8.1
Posts: 51

Original Poster
Rep: Reputation: 15
More reading revealed that supermount is not compatible with NFS. (Mandrake how to's)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an nfs share - Permission Denied doctorwebbox Linux - Networking 5 05-30-2005 01:45 AM
NFS :: Permission denied after mounting, root works.. Devils_Guardian Linux - Networking 1 11-17-2004 10:40 AM
NFS mounting : Permission denied Bahador Linux - Networking 3 07-18-2003 04:33 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM
NFS Problem mounting 2 systems:Permission Denied by server meng_en Linux - General 3 09-23-2002 11:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration