LinuxQuestions.org
Help answer threads with 0 replies.
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 08-20-2004, 12:08 PM   #1
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
nfs server permission denied


I know this is a common issue, but I cannot seem to work it out despite the fact that I have set up several nfs servers and clients without issue in the past. Here goes ....

Dist: Slack10
Kernel: 2.6.8.1
`cat /usr/src/linux/.config | grep -i nfs`:
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V4 is not set
CONFIG_NFSD_TCP=y
`cat /etc/exports`: /shared 192.168.1.*(rw,sync)
`cat /etc/hosts.allow`:
portmap:192.168.1.*
lockd:192.168.1.*
rquotad:192.168.1.*
mountd:192.168.1.*
statd:192.168.1.*
`cat /etc/hosts.deny`:
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
portmap:ALL
`showmount -e server`: /shared 192.168.1.*
`cat /etc/hosts`: 127.0.0.1 server, localhost
`ps fax | grep rpc`:
1443 ? Ss 0:00 /sbin/rpc.portmap
1902 ? Ss 0:00 /usr/sbin/rpc.rquotad
1913 ? S 0:00 [rpciod]
1915 ? Ss 0:00 /usr/sbin/rpc.mountd
1918 ? Ss 0:00 /usr/sbin/rpc.statd


now, the problem:

`sudo mount server:/shared/ tmp/`:
mount: server:/shared/ failed, reason given by server: Permission denied

Yes, I did `sudo exportfs -ra`, and I even did `sudo sh /etc/rc.d/rc.nfsd restart`, to no avail. What am I doing wrong?? Thanks.
 
Old 08-20-2004, 12:18 PM   #2
dcostakos
Member
 
Registered: Aug 2004
Posts: 44

Rep: Reputation: 15
From you command output, it looks like you are testing this by mounting the directory from the same server it is exported from. In the /etc/hosts file, you have "server" pointing to 127.0.0.1. In you /etc/exports file, you are only allowing access to 192.168.1.*.

If that is true, are you getting denied because you are attempting to access the mount over localhost?
 
Old 08-20-2004, 12:47 PM   #3
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
Yes, that is true. I am on server attempting to mount a share on server. This normally works right? Even so, this is the output from a client: mount: RPC: Program not registered
 
Old 08-21-2004, 11:47 AM   #4
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Original Poster
Rep: Reputation: 30
I solved this with shfs. http://shfs.sf.net. Only problem is, I can't seem to automount. Small price to pay though....
 
  


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
Permission denied on client when running install script residing on NFS server dstotz Linux - Newbie 2 12-11-2004 03:10 PM
nfs problem server: Permission denied anamika123 Linux - Networking 5 04-30-2004 02:56 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 Problem mounting 2 systems:Permission Denied by server meng_en Linux - General 3 09-24-2002 12:24 AM

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

All times are GMT -5. The time now is 03:57 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