LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-07-2004, 01:09 AM   #1
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Rep: Reputation: 15
Angry PLEASE help, NFS (permission denied)


Okay, using Slack 9.1 -- I have read the HOWTO on NFS, I've read all the posts and have tried everything possible. BY that I guess I should tell you what I've done in order for everything to make sense.

I want to use NFS between two computer whos network cards work fine in Slack and are able to ping each other, no problem. After installing the NFS package and all the other required packages (ie. mountd, status, rquotad, nlockmgr, and portmapper) using rpcinfo -p <host ip> so I'm able to see the other computers rpc info and everything shows up like it should, all daemons are running fine. I've run pkgtool-setup-services to be sure all appropriate services are running, which they are.

I'm able to showmount -e <ip of computer> and it shows exactly what I have in my /etc/exports file (for example on one computer it looks like this

/home 192.168.1.1/255.255.255.0(ro,nohide,insecure,no_root_squash)

NOTE: if I do not put the subnet mask ie. /255.255.255.0, after the ip address, I get a rpc not running error, and when using exportfs -ra, get an invalid argument, until I put the mask.

this exact line shows up on my other computer when I run showmount -e <ip address> (minus the ro,noide ect...). So I know that it can see the exports file. I used the no_root_squash option on both computers just for the sake of getting it working. I've also modified my hosts.allow and hosts.deny folders so that they don't contain anything which NFS should still work, but is as insecure as anything-I'm not concerned about security right now though. My hosts file contains the appropriate ip to DNS names but as a precaution I still use ip addresses.

So...when I go to mount the NFS directory: mount -t nfs 192.168.1.1: /home mnt/nappa2 it still tells me permission denied. After reading some about this, I decided to iptables -F, which should turn off any firewall rules (if I'm not mistaken) NOTE: I do not have broadband internet, nor any firewall software installed. (now all you hackers are going ALL right!!) This will all change of course once I'm able to get NFS running with a firewall which I'm able to do once NFS is running.

I'm not sure what version my NFS package is, but it's the one from the /N directory on the Slackware FTP 9.1 page. So I figure it should be current enough. Another possiblity I was toying with, is that I've heard that even though you may install the package, you still have to compile NFS into your kernel, but this didn't make a whole lot of sence to me.

I would appreciate any help you could give me...like I've said, I've read pretty much everything there is to read on NFS...I don't have SAMBA or anything else running that might get in the way either. NOTE: if using one of my Slack computers to a RedHat computer (redhat being the Server), NFS works just fine, but it's between the two Slack computers that it doesn't work. I tried looking at the RedHat files to see what was so different but couldn't find anything.
 
Old 01-07-2004, 11:28 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Have you checked
/etc/hosts.allow
and
/etc/hosts.deny
?
Are the /etc/services and /etc/inetd.conf
fine?


Cheers,
Tink
 
Old 01-07-2004, 01:53 PM   #3
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
I have checked hosts.deny/allow and have put my hosts ip in the hosts.allow file. NO matter what I do to these files (hosts.allow/deny) I still get a permission denied. I've tried the whole portmap:ALL and ALL:ALL thing, and no success. I've looked in the inet.d and haven't seen a service for NFS...could you help me out with this file...the only thing I've touched is the telnet boot option which (when commented out or not) does not affect the NFS situation.
 
Old 01-07-2004, 03:58 PM   #4
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
uh, how about /etc/exports

there should be an entry in there also..........
 
Old 01-07-2004, 04:55 PM   #5
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
In my first message was some infor about my exports files and the contents within them. All should work just fine. Like I said, I have to add the subnet mask in the exports files or else they aren't recognized.

example: /home 192.168.1.2/255.255.255.0(ro,no_root_squash,insecure)

keep in mind that I'm not trying to be secure, I'm just trying to get it to work first.
 
Old 01-07-2004, 09:18 PM   #6
rotvogel
Member
 
Registered: Oct 2003
Posts: 534

Rep: Reputation: 30
Maybe you should use:
192.168.1.0/255.255.255.0 for a network (any 192.168.1.x host can connect) or 192.168.1.2/255.255.255.255 for a single host in your exports file. Restart rc.nfsd after changing the file and try again.
 
Old 01-11-2004, 01:02 AM   #7
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
after doing more research, I'm still stuck. I've even tried compiling it into the kernel. This problem really is bothering me. I'm usually able to solve problems like this, but alas, it seems after trying everything it was not meant to be...a shame.
 
Old 01-11-2004, 08:35 AM   #8
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Just a thought, but doenst NFS map from UID to UID, so if your user bob on the client with UID 101 then you'll have rights on the server as whoever UID 101 is?

-Andy
 
Old 01-11-2004, 11:29 PM   #9
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
codeguy...you are AWESOME!!!!!! That has been my problem this whole time....I have to give you my deepest thanks. This problem has been bothering me for quite some time now. I've been so frustrated as a Linux newbie, that I thought I'd have to give it up. Once again, there isn't anything that can't be fixed in Linux. Thank you...everyone.
 
Old 01-12-2004, 10:07 AM   #10
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
so now, using the UID, what does your exports entry look like? from your first post it looked to me like you had the host IP address in exports instead of the client's (192.168.1.1) since you mounted using that IP too. The exports file should have the IP address of the computer that you'll let mount the filesystem, right?
 
Old 01-12-2004, 06:06 PM   #11
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
I don't think this is the case. My exports file on the host computer (192.168.1.1) looks like this :

/home 1922.168.1.2/255.255.255.0(ro,no_root_squash,sync)


the ip address refers to my client computer.
 
Old 01-12-2004, 07:26 PM   #12
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Yeah, that's what I was saying. I use a different syntax for my exports statements but I guess it all does the same thing. How is your exports file looking now?
 
Old 01-12-2004, 11:59 PM   #13
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
I see where you are going....and you're right. Using the UID I have to set the hosts computer's exports file to let the client know it can access it. So I just put the hosts ip address and netmask in the exports file for the client to have access.
 
Old 01-13-2004, 03:17 AM   #14
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
One other nice thing that I did (using Dropline Gnome anyway) is edit my /etc/fstab file so with my NFS connections on the client machine. That way when I want to mount another computer I just right click the desktop, go to Disks, and click one I want. An icon appears on the desktop and makes everything easy. Do you do something like that? Before doing that I used xterm only.

hostname(or IP address):/<shared dir> /<mount point> nfs rsize=8192,wsize=8192,noauto,user,rw 0 0

that's a standard entry and works really nice.
 
Old 01-13-2004, 11:01 AM   #15
Nappa
Member
 
Registered: Nov 2003
Posts: 42

Original Poster
Rep: Reputation: 15
you're right, that works a lot better than what I've been doing. Like you, I've been using xterm. Thanks so much for all the help. I'm really liking NFS now.
 
  


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
nfs 'permission denied' friendly_guy Slackware 7 01-02-2005 07:24 PM
nfs server permission denied lackluster Linux - Networking 3 08-21-2004 10:47 AM
NFS permission denied somesh Linux - Software 2 07-22-2003 02:42 PM
NFS - Permission Denied... 15788 Linux - Networking 9 04-06-2003 09:43 AM
Permission Denied NFS graystarr Linux - Networking 9 07-08-2002 05:06 PM

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

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