SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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.
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.
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.
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.
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?
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.
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?
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?
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.
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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.