LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-08-2002, 03:16 PM   #1
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Rep: Reputation: 15
Unhappy Permission Denied NFS


When I try to mount a share on my other linux (RH7.3), I get a server response "permission denied". I have followed all of the steps to do so and I am not sure why I am getting this error. I know the permissions on the folder itself are good cause I can access the folder with samba using a winblows machine.

Any help would be greatly appreciated.

Mike
 
Old 07-08-2002, 03:49 PM   #2
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
Please be more specific about step you follow and comands
used? Also post /etc/fstab and /etc/exports files, from the server you are exporting the filesystem from.

And of course any related errors from /var/log/messages
on both servers.
 
Old 07-08-2002, 04:14 PM   #3
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Original Poster
Rep: Reputation: 15
Unhappy re: permission denied NFS

error msg
mount: linuxbox:/shared failed, reason given by server: Permission Denied

/etc/fstab


label=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda2 /swap swap defaults 0 0
/dev/hdb1 /mnt/shared auto defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0


/etc/exports


/mnt/shared 192.168.0.8(rw,no_root_squash,insecure) 192.168.0.0/255.255.255.0(rw,no_root_squash,insecure)

Hope this helps cause I cant figure it out The only thing is that in my fstab the shared folder is auto instead of nfs ???????
 
Old 07-08-2002, 04:20 PM   #4
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
You might want to take a look at this:
http://tldp.org/HOWTO/NFS-HOWTO/index.html
http://www.redhat.com/support/resour.../NFS-Tips.html
http://www.redhat.com/docs/manuals/l...de/ch-nfs.html
 
Old 07-08-2002, 04:30 PM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 262Reputation: 262Reputation: 262
Did you make sure on the server to have the host trying to mount the shared directory in the /etc/hosts file ? Not sure if that would help if you have the exports correct.. also check the permissions on the directory.

Last edited by trickykid; 07-08-2002 at 04:36 PM.
 
Old 07-08-2002, 04:50 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 262Reputation: 262Reputation: 262
Also, shouldn't you have something like in this format in your /etc/fstab on the host trying to mount the shared directory:

servername:/mnt/shared /mnt/shared nfs rsize=8192,wsize=8192,timeo=14

Let us know ! Need more details on the server side and client side.

Last edited by trickykid; 07-08-2002 at 04:53 PM.
 
Old 07-08-2002, 04:50 PM   #7
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
What syntax were you using for you mount statement?
mount remote_server:/dev/xxx /mnt

or is it
mount remote_server:/exported_mnt /mnt

Are you sure nfsd is running?
Chck /etc/init.d and see if there is an nfs script

If there is do /etc/init.d/nfsd stop; /etc/init.d/nfsd start

Last edited by pickledbeans; 07-08-2002 at 04:53 PM.
 
Old 07-08-2002, 05:39 PM   #8
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Original Poster
Rep: Reputation: 15
Unhappy permission denied NFS

Ok, I checked all the hosts and allow and deny. Everything looks right. Now when I try to mount -a i get RPC: program not registered.

This is getting a bit frustrating

Any ideas??????
 
Old 07-08-2002, 05:43 PM   #9
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
Re: permission denied NFS

Quote:
Originally posted by graystarr
Ok, I checked all the hosts and allow and deny. Everything looks right. Now when I try to mount -a i get RPC: program not registered.

This is getting a bit frustrating

Any ideas??????
And you didn't find anything in the links I gave you, that
would helo
 
Old 07-08-2002, 06:06 PM   #10
graystarr
Member
 
Registered: Dec 2001
Location: Layton, Utah
Distribution: Red Hat 8.0 and Mandrake 9.0
Posts: 85

Original Poster
Rep: Reputation: 15
Talking permission denied NFS

Thanks trickykid. It was my goof up. I didnt have it typed in right in my fstab on my client! It works now! Thank you all for all of your help! This list rocks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
nfs 'permission denied' friendly_guy Slackware 7 01-02-2005 08:24 PM
nfs server permission denied lackluster Linux - Networking 3 08-21-2004 11:47 AM
PLEASE help, NFS (permission denied) Nappa Slackware 15 01-13-2004 08:17 PM
NFS permission denied somesh Linux - Software 2 07-22-2003 03:42 PM
NFS - Permission Denied... 15788 Linux - Networking 9 04-06-2003 10:43 AM

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

All times are GMT -5. The time now is 05:48 AM.

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