LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-20-2013, 03:19 PM   #1
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Rep: Reputation: 32
NFS access denied


Hi fellas, I'm having big trouble with nfs. My desktop (sLACKWARE 14.1 64BIT MULTI-LIB) has an nfs share and i have been using it regularly through my laptop running arch linux, where it mounted and worked just fine. I wasn't entirely happy with arch so I uninstalled it and replaced it with Slackware 14.1 64bit multi-lib because it has always been so pleasant to use. However with the same settings I had on arch I cant seem to get my shares to mount on the laptop? I keep getting this error --> "mount.nfs: access denied by server while mounting 192.168.1.16:/share". I have added lines to my hosts.allow to let any client on the network access the share. Even though this wasnt necessary to allow arch linux on the laptop to connect. I dont know what the heck i'm doin wrong here. Can anyone please help me.

Last edited by bmarley83; 12-20-2013 at 03:20 PM.
 
Old 12-20-2013, 03:37 PM   #2
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Did you forget this?

Code:
# chmod +x /etc/rc.d/rc.rpc
# /etc/rc.d/rc.rpc start
 
Old 12-20-2013, 04:00 PM   #3
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
yes i have done this already. thanks for the reply.

Last edited by bmarley83; 12-20-2013 at 04:03 PM.
 
Old 12-20-2013, 04:06 PM   #4
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
but now for some reason showmount -e says --> clnt_create: RPC: Port mapper failure - RPC: Unable to receive i can ping the server. Wth is that?

Last edited by bmarley83; 12-20-2013 at 04:08 PM.
 
Old 12-20-2013, 04:20 PM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
Can you post your /etc/exports, /etc/hosts.deny, and /etc/hosts.allow on the server system (192.168.1.16)?
 
Old 12-20-2013, 04:24 PM   #6
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
requested files

# See exports(5) for a description.
# This file contains a list of all directories exported to other computers.
# It is used by rpc.nfsd and rpc.mountd.

/nfs4 192.168.1.1/24(rw,no_subtree_check,fsid=root)

/nfs4/share 192.168.1.1/24(rw,no_subtree_check)

/nfs4/packages 192.168.1.1/24(rw,no_subtree_check)



#
# hosts.allow This file describes the names of the hosts which are
# allowed to use the local INET services, as decided by
# the '/usr/sbin/tcpd' server.
#
# Version: @(#)/etc/hosts.allow 1.00 05/28/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org
#
#
# For NFS mount from LAN
portmap: 192.168.1.1/255
lockd: 192.168.1.1/255
rquotd: 192.168.1.1/255
mountd: 192.168.1.1/255
statd: 192.168.1.1/255

# End of hosts.allow.





#
# hosts.deny This file describes the names of the hosts which are
# *not* allowed to use the local INET services, as decided
# by the '/usr/sbin/tcpd' server.
#
# Version: @(#)/etc/hosts.deny 1.00 05/28/93
#
# Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org
#
#

# End of hosts.deny.



thanks for your time,
 
Old 12-20-2013, 04:27 PM   #7
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
and this is from client

bash-4.2# showmount -e 192.168.1.16
Export list for 192.168.1.16:
/nfs4/packages 192.168.1.1/24
/nfs4/share 192.168.1.1/24
/nfs4 192.168.1.1/24
 
Old 12-20-2013, 04:46 PM   #8
bmarley83
Member
 
Registered: Apr 2013
Location: Pennsylvania
Distribution: Slackware, Debian
Posts: 185

Original Poster
Rep: Reputation: 32
OOPS!

solved... I wasn't specifing the full mount path LOL! Freakin arch linux. In arch you dont have to specify the full path so I had mount 192.168.1.16:/share /mnt/share but it should have been mount 192.168.1.16:/nfs4/share /mnt/share :facepalm: thanks for everyones help. And also I'd like to add Fu*$ ARCH LINUX!!!!
 
Old 12-20-2013, 04:52 PM   #9
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
Glad you got it working.

I was thinking perhaps your network/netmask format was wrong in hosts.allow, and I was going to suggest that you try this:

Code:
portmap: 192.168.1.
lockd: 192.168.1.
rquotd: 192.168.1.
mountd: 192.168.1.
statd: 192.168.1.
But the way you have it must be OK, so forget that.
 
  


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
mount:nfs access denied saigop Linux - Server 5 08-02-2013 08:19 AM
Access Denied NFS holdencaulfield *BSD 1 02-05-2013 07:09 AM
[SOLVED] CentOS - NFS - Access Denied zer0signal Red Hat 11 10-19-2010 08:15 PM
nfs access denied Motown Linux - Networking 1 07-14-2004 12:38 AM
NFS - access denied filsed Linux - Networking 2 03-21-2002 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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