LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 05-30-2005, 02:30 AM   #1
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Rep: Reputation: 15
unable to mount /home dir in a client machine


Hi
I have a nis server and i want to mount home directory.
in /etc/exports file i have done the following configuration
/home *(rw,sync)

chkconfig nfs on
chkconfig iptables off
chkconfig nfslock on
/sbin/rpc.statd start
service portmap start
chkconfig portmap on
chkconfig ypserv on

in vi /etc/hosts.allow
portmap : 132.0.0.0 : allow
ALL : 132.0.0.

when i mount the /home directory in a client machine
mount 132.0.0.2:/home /home

i get following error
Mount RPC: unable to receive errno=Connection refused


Can anyone help me
 
Old 05-30-2005, 03:12 AM   #2
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
in /etc/exports file try this...
/home 132.0.0.0/24(rw,sync)

check...
/etc/hosts.allow
/etc/hosts.deny..

alsoin case SELinux is enabled ... diable it with 'setenforce 0'

also post the output from 'rpcinfo -p'

best luck
 
Old 05-30-2005, 04:37 AM   #3
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

I did that,
the status remain unchanged. still getting the same error
 
Old 05-30-2005, 04:41 AM   #4
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

output from rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100004 2 udp 802 ypserv
100004 1 udp 802 ypserv
100004 2 tcp 805 ypserv
100004 1 tcp 805 ypserv
391002 2 tcp 1025 sgi_fam
100009 1 udp 983 yppasswdd
100011 1 udp 970 rquotad
100011 2 udp 970 rquotad
100011 1 tcp 973 rquotad
100011 2 tcp 973 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1031 nlockmgr
100021 3 tcp 1031 nlockmgr

100021 4 tcp 1031 nlockmgr
100005 1 udp 988 mountd
100005 1 tcp 991 mountd
100005 2 udp 988 mountd
100005 2 tcp 991 mountd
100005 3 udp 988 mountd
100005 3 tcp 991 mountd
 
Old 05-30-2005, 05:08 AM   #5
jul3z
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
Hi,
Maybe you can check that the /home is correctly exported, from you client type : showmount -e 132.0.0.2
 
Old 05-30-2005, 05:18 AM   #6
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

WELL ON CLIENTMACHINE, I DID THIS

[root@delapache root]# showmount -e 132.0.0.2
Export list for 132.0.0.2:
/home 132.0.0.0/24
[root@delapache root]# mount 132.0.0.2:/home /home
mount: RPC: Unable to receive; errno = Connection refused
 
Old 05-30-2005, 05:20 AM   #7
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
your rpcinfo output seems absolutely correct.
check the /var/log/messages for authentication faliures at the time you are trying to mount from client.
post that..
if you have a nis server from where you are exporting users and passwds.. check everything is OK... as nis client
 
Old 05-30-2005, 05:52 AM   #8
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

/VAR/LOG/ MESSAGES

May 30 09:53:45 delnis kernel: hdc: attached ide-cdrom driver.
May 30 09:53:45 delnis kernel: hdc: ATAPI DVD-ROM drive, 128kB Cache, DMA
May 30 09:53:45 delnis kernel: Uniform CD-ROM driver Revision: 3.12
May 30 09:53:48 delnis kernel: cdrom: This disc doesn't have any tracks I recog
ize!
May 30 10:05:53 delnis portmap[1557]: connect from 132.0.0.4 to dump(): request
from unauthorized host
May 30 10:05:53 delnis portmap[1558]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:05:53 delnis portmap[1559]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:14:44 delnis portmap[1561]: connect from 132.0.0.4 to dump(): request
from unauthorized host
May 30 10:14:44 delnis portmap[1562]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host
May 30 10:14:44 delnis portmap[1563]: connect from 132.0.0.4 to getport(mountd)
request from unauthorized host


May 30 10:21:22 delnis kernel: lp0: console ready
May 30 10:21:22 delnis portmap[1077]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:22 delnis modprobe: modprobe: Can't locate module char-major-188
May 30 10:21:22 delnis last message repeated 15 times
May 30 10:21:22 delnis modprobe: modprobe: Can't locate module char-major-180
May 30 10:21:23 delnis last message repeated 15 times
May 30 10:21:33 delnis portmap[1383]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:34 delnis portmap[1384]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host
May 30 10:21:35 delnis kernel: mice: PS/2 mouse device common for all mice
May 30 10:21:35 delnis portmap[1388]: connect from 132.0.0.4 to getport(ypserv)
request from unauthorized host

May 30 10:21:57 delnis xinetd[1482]: warning: can't get client address: Transpo
t endpoint is not connected

@
 
Old 05-30-2005, 06:02 AM   #9
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

ON CLIENT COMP
ay 30 10:21:58 delapache kernel: cdrom: This disc doesn't have any tracks I re
ognize!
May 30 10:24:42 delapache kernel: i8253 count too high! resetting..
May 30 10:34:42 delapache kernel: nfsd: last server has exited
May 30 10:34:42 delapache kernel: nfsd: unexporting all filesystems
May 30 10:37:16 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:37:16 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:37:16 delapache nfs: rpc.mountd shutdown succeeded
May 30 10:37:16 delapache nfs: nfsd shutdown failed
May 30 10:37:16 delapache nfs: rpc.rquotad shutdown succeeded
May 30 10:37:16 delapache nfs: Shutting down NFS services: succeeded
May 30 10:37:33 delapache portmap: portmap shutdown succeeded
May 30 10:37:38 delapache nfs: Starting NFS services: succeeded
May 30 10:37:38 delapache rpc.rquotad: Cannot register service: RPC: Unable to
eceive; errno = Connection refused
May 30 10:37:38 delapache rpc.rquotad: rpc.rquotad: unable to register (RQUOTAP
OG, RQUOTAVERS, udp).
May 30 10:37:39 delapache nfs: rpc.rquotad startup failed
.
May 30 10:41:04 delapache portmap: portmap startup succeeded
May 30 10:41:08 delapache nfs: Starting NFS services: succeeded
May 30 10:41:08 delapache nfs: rpc.rquotad startup succeeded
May 30 10:41:08 delapache nfs: rpc.nfsd startup succeeded
May 30 10:41:08 delapache nfs: rpc.mountd startup succeeded
May 30 10:42:54 delapache kernel: portmap: server localhost not responding, tim
d out

May 30 10:48:57 delapache rpc.mountd: Caught signal 15, un-registering and exit
ng.
May 30 10:48:57 delapache nfs: rpc.mountd shutdown succeeded
May 30 10:49:01 delapache kernel: nfsd: last server has exited
May 30 10:49:01 delapache kernel: nfsd: unexporting all filesystems
May 30 10:49:01 delapache kernel: nfsd: last server has exited
May 30 10:49:01 delapache kernel: nfsd: unexporting all filesystems
May 30 10:49:01 delapache nfs: nfsd shutdown succeeded
May 30 10:49:02 delapache nfs: rpc.rquotad shutdown succeeded
May 30 10:49:02 delapache nfs: Shutting down NFS services: succeeded
May 30 10:49:02 delapache nfs: Starting NFS services: succeeded
May 30 10:49:02 delapache nfs: rpc.rquotad startup succeeded
 
Old 05-30-2005, 06:09 AM   #10
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
your nfs server is not authenticating the incoming connection...

please check the following...
in /etc/hosts.deny, there shouldnt be nething (just for testing)...
in /etc/hosts.allow nothing should be there... (which means ur /etc/exports) is final authority in restricting...
restart xinetd... and restart portmap and also nfs daemons.. try and see what happens
 
Old 05-30-2005, 06:30 AM   #11
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
unable to mount /home folder

ITS GIVING ME THE SAME ERROR, HOW EVER
when i restart the nfs service

[root@delnis root]# service nfs restart

Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
[ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
 
Old 05-30-2005, 09:35 AM   #12
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
damn with this stupid os. i am formatting my drive and reinstall linux.

thankyou guys for helping
 
Old 05-30-2005, 09:42 AM   #13
saneax
Member
 
Registered: Aug 2004
Distribution: Gentoo, Suse, Fedora, Debian
Posts: 86

Rep: Reputation: 15
bad option...
read through http://nfs.sourceforge.net/nfs-howto/security.html
and http://nfs.sourceforge.net/nfs-howto/server.html

may the luck be with you
 
Old 05-30-2005, 11:13 AM   #14
Tudor Popescu
Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
Thumbs up

Thank you kindly. This information is very useful for me. Great site! Thanks again!

________________________________________________________________
http://www.neolink.ro
 
Old 06-06-2005, 03:11 AM   #15
abhishek124
LQ Newbie
 
Registered: May 2005
Location: Bangalore,India
Distribution: Red Hat Linux Enterprise 3&4
Posts: 24

Original Poster
Rep: Reputation: 15
Hi
I have a nis server and i want to mount home directory.
in /etc/exports file i have done the following configuration
/home *(rw,sync)

chkconfig nfs on
chkconfig iptables off
chkconfig nfslock on
/sbin/rpc.statd start
service portmap start
chkconfig portmap on
chkconfig ypserv on

in vi /etc/hosts.allow
portmap : 132.0.0.0 : allow
ALL : 132.0.0.

when i mount the /home directory in a client machine
mount 132.0.0.2:/home /home

i get following error
Mount RPC: unable to receive errno=Connection refused
output from rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 1024 status
100024 1 tcp 1024 status
100004 2 udp 802 ypserv
100004 1 udp 802 ypserv
100004 2 tcp 805 ypserv
100004 1 tcp 805 ypserv
391002 2 tcp 1025 sgi_fam
100009 1 udp 983 yppasswdd
100011 1 udp 970 rquotad
100011 2 udp 970 rquotad
100011 1 tcp 973 rquotad
100011 2 tcp 973 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 1027 nlockmgr
100021 3 udp 1027 nlockmgr
100021 4 udp 1027 nlockmgr
100021 1 tcp 1031 nlockmgr
100021 3 tcp 1031 nlockmgr

100021 4 tcp 1031 nlockmgr
100005 1 udp 988 mountd
100005 1 tcp 991 mountd
100005 2 udp 988 mountd
100005 2 tcp 991 mountd
100005 3 udp 988 mountd
100005 3 tcp 991 mountd

WELL ON CLIENTMACHINE, I DID THIS

[root@delapache root]# showmount -e 132.0.0.2
Export list for 132.0.0.2:
/home 132.0.0.0/24
[root@delapache root]# mount 132.0.0.2:/home /home
mount: RPC: Unable to receive; errno = Connection refused

ITS GIVING ME THE SAME ERROR, HOW EVER
when i restart the nfs service

[root@delnis root]# service nfs restart

Shutting down NFS mountd: [FAILED]
Shutting down NFS daemon: nfsd: last server has exited
nfsd: unexporting all filesystems
[ OK ]
Shutting down NFS quotas: [ OK ]
Shutting down NFS services: [ OK ]
Starting NFS services: [ OK ]
Starting NFS quotas: [ OK ]
Starting NFS daemon: [ OK ]
Starting NFS mountd: [ OK ]
 
  


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
unable to Mount server home directory to clients abhishek124 Linux - Networking 1 06-24-2005 03:44 AM
accessing home directory on win200X machine from linux client bschneider Linux - Networking 4 10-22-2004 08:56 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 08:54 PM
howto have the client home dir on a server green-ears Linux - Networking 7 09-25-2003 08:17 PM
nis client login - user home dir not fnd synfield Linux - Networking 0 03-27-2003 04:51 AM


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