LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-15-2005, 04:17 PM   #1
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Rep: Reputation: 15
Need help with NFS, can't find what I need in the man pages...


I checked all the man pages I can think of, and I can't find anything relevant in any of them: running Slack with a stock 2.4.29 kernel on a desktop and a compiled 2.6.12.3 kernel on my notebook; I'm certain I enabled NFS when I configured it, and I've started every daemon on both machines I can think of or that have been mentioned in guides (I'm on the verge of running every single script in rc.d...) -- the two comps are networked, netstat is telling me all the daemons are listening, etc.., but when I 'mount -t nfs (IP-addie):/(share) (local dir)' it says this:

mount: RPC: Program not registered

lsmod says both kernels definitely have the modules loaded, and rpc.portmap is running on both as well. I totally disabled all firewalling on both machines, but I made sure that only the bare minimum scripts in rc.d get run at boot... have I turned something off that I need? I use slapt-get to keep both boxes current, if that's relevant. I'm really at a total loss here, and I just can't find anything about this issue anywhere...

... help, heh?
 
Old 08-15-2005, 04:24 PM   #2
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
is /etc/rc.d/rc.portmap executable on both machines ?

Did you try /etc/rc.d/rc.nfsd restart on both machines ?

How does the /etc/exports look like on the server ?
What is your output with :
Code:
/usr/sbin/showmount -e <server IP>
From the client where you attempted to mount a nfs share
 
Old 08-15-2005, 04:27 PM   #3
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Is /etc/rc.d/rc.portmap executable?
Code:
chmod +x /etc/rc.d/rc.portmap
/etc/rc.d/rc.portmap start
***EDIT***

Doh, too slow.

***/EDIT***
 
Old 08-15-2005, 04:33 PM   #4
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
No, none of the startup scripts are executable, I was using 'sudo bash rc.nfsd start', to execute them since I have a tendency to forget what I've been playing with before I've disabled it again...
'sudo /usr/sbin/showmount -e 192.168.0.135' (the server box's IP on the LAN):

mount clntudp_create: RPC: Program not registered

I'm thinking it's a stupid modification I made months ago while disabling every service possible to try and maximize security, but... what I changed, or when, I have no clue. Anything related to the recurring RPC not registered business I could have mucked with unknowingly in the past 4-8 months...?
 
Old 08-15-2005, 04:35 PM   #5
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
Yeah, it's definitely running:
$ps aux

bin 12103 0.0 0.1 1688 612 ? Ss 15:33 0:00 /sbin/rpc.portmap
root 12651 0.0 0.1 1516 512 ? Ss 15:53 0:00 /usr/sbin/inetd
root 12852 0.0 0.1 1640 748 ? Ss 16:03 0:00 rpc.statd


[edit: sorry, forgot to answer -- yeah, I set up /etc/exports; manually did 'exportfs -a' after running rc.nfsd just to be sure too]

Last edited by NoeticRapture; 08-15-2005 at 04:41 PM.
 
Old 08-15-2005, 04:49 PM   #6
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Could you try these commands in the server :

chmod +x /etc/rc.d/rc.portmap
sh /etc/rc.d/rc.nfsd restart

then from your client : /usr/sbin/showmount -e 192.168.0.135 (no need to be root)
 
Old 08-15-2005, 04:53 PM   #7
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
I'm happy to try anything you can think of that might help... did precisely what you said, same exact output from showmount:

mount clntudp_create: RPC: Program not registered

I tried mounting the server's share from the server... only error it gave me is that I wasn't authorized, which I'd hope it would do since that box isn't in its own /etc/exports
 
Old 08-15-2005, 04:56 PM   #8
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Now try the same commands in your client and post back the result.
If it fails again, could you post your /etc/exports file ?

Last edited by keefaz; 08-15-2005 at 04:57 PM.
 
Old 08-15-2005, 05:15 PM   #9
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
Think I got it... but I'm not sure how... Okay, well since rpcinfo -p [server] worked fine from the server but not from the client (which said no programs registered), I emptied the server's /etc/hosts.deny file (said ALL: ALL) -- I thought you could deny all in hosts.deny, and allow individual computers access in hosts.allow without a problem? The client was definitely in hosts.allow, and once there's nothing in hosts.deny, rpcinfo -p [server] works just fine from both machines...

And yeah, mount works like a charm, just made sure. So does showmount. Am I wrong about the order of hosts.allow/deny?
 
Old 08-15-2005, 05:32 PM   #10
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
On the server machine you could add in /etc/hosts.deny :
portmap: ALL

and add in /etc/hosts.allow :
portmap: <client ip>/255.255.255.0

That should enable access to only your client, but if you really concerned
with security, why not use scp and ssh to transfer files between machines ?
 
Old 08-15-2005, 05:39 PM   #11
NoeticRapture
LQ Newbie
 
Registered: Mar 2005
Location: NY
Distribution: Slackware
Posts: 25

Original Poster
Rep: Reputation: 15
Hmm... I'll check out the man pages and do some websearches on those; I didn't really think I was more paranoid about security than the average Linux user, but that's a different topic altogether.

Thanks so much for your speedy help, keefaz -- it's great to have this forum with friendly people when all else fails.
 
Old 08-15-2005, 05:41 PM   #12
keefaz
Senior Member
 
Registered: Mar 2004
Distribution: Slackware
Posts: 4,617

Rep: Reputation: 136Reputation: 136
Try man 5 hosts_access for documentation for /etc/hosts.allow and /etc/hosts.deny
 
Old 03-31-2010, 11:37 PM   #13
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 228

Rep: Reputation: 15
Lightbulb Another happy customer (=

Quote:
Originally Posted by NoeticRapture View Post
Hmm... I'll check out the man pages and do some websearches on those; I didn't really think I was more paranoid about security than the average Linux user, but that's a different topic altogether.

Thanks so much for your speedy help, keefaz -- it's great to have this forum with friendly people when all else fails.
I would only like to share a few words. I too am a Slackware user, and personnaly I think its the best OS out there. And to see that other people are helping each other out is totaly amazing. If only Windows was as usefull... we would live in such a different world. If only there was a "Slackware certification"... you can bet that if there was a school where you could go and learn all about Slackware, my name would be the first on the list. I'm glad that www.google.com helps alot.

Thank you for posting your questions on this topic. Because without these questions, there would be no answers. I found this posting really usefull and I intend to use every little bit of info that it gave me.

Without you guys, its just not possible.

Cheers,
Dumdadum (=

Last edited by dumdadum; 03-31-2010 at 11:39 PM.
 
  


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
C++ man pages Guest1234 Linux - Newbie 2 06-29-2008 10:12 AM
C++ man pages Guest1234 Ubuntu 0 05-11-2005 03:45 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 03:12 PM
How do I know where the man pages are? narik Linux - General 1 06-15-2004 02:22 PM
man pages haobaba1 Linux - General 4 07-30-2003 03:09 PM


All times are GMT -5. The time now is 08:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration