Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
05-11-2009, 06:32 AM
|
#1
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Rep:
|
NFS Issue?
I have two RHEL Machines rh1 and rh2.I tried to creat rh1 as NFS Server and edited /etc/exports as:
Code:
/home/fdmin/arch *(rw,sync,no_root_squash)
And exports -a worked without any error.
Restarted nfs
Showmount -e localhost showing good.
I tried running this on rh2
It says:
Code:
# mount -t nfs rh1:/home/fdmin/arch /tmp/res
mount: rhn1:/home/fdmin/arc/ failed, reason given by server: Permission denied
#
Showmount -e rh1 worked and shows fine on rh2 but rh2 is not able to mount rh1.
Also, If I try making rh2 as server and rh1 as client it works fine.
Why does the first setup doesnt work?
Last edited by your_shadow03; 05-11-2009 at 06:34 AM.
|
|
|
|
05-11-2009, 07:21 AM
|
#2
|
|
Member
Registered: Nov 2008
Location: London, UK
Distribution: CentOS, RedHat, Ubuntu
Posts: 79
Rep:
|
what do your logs say?
|
|
|
|
05-11-2009, 01:01 PM
|
#3
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
Which logs?are you talking about /var/log/messages?
It doesnt show any error?
|
|
|
|
05-11-2009, 03:51 PM
|
#4
|
|
Moderator
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,916
|
On neither machine? How odd.
Cheers,
Tink
|
|
|
|
05-11-2009, 04:09 PM
|
#5
|
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,782
Rep: 
|
Quote:
Originally Posted by your_shadow03
I have two RHEL Machines rh1 and rh2.I tried to creat rh1 as NFS Server and edited /etc/exports as:
Code:
/home/fdmin/arch *(rw,sync,no_root_squash)
And exports -a worked without any error.
Restarted nfs
Showmount -e localhost showing good.
I tried running this on rh2
It says:
Code:
# mount -t nfs rh1:/home/fdmin/arch /tmp/res
mount: rhn1:/home/fdmin/arc/ failed, reason given by server: Permission denied
#
Showmount -e rh1 worked and shows fine on rh2 but rh2 is not able to mount rh1.
Also, If I try making rh2 as server and rh1 as client it works fine.
Why does the first setup doesnt work?
|
Is the firewall/selinux enabled on either host? Are you using tcp_wrppers? Is there any other firewall in the picture (cisco or any other hardware firewall)?
-C
Last edited by custangro; 05-11-2009 at 04:20 PM.
|
|
|
|
05-11-2009, 07:33 PM
|
#6
|
|
LQ Newbie
Registered: May 2009
Location: San Antonio, TX
Distribution: Debian
Posts: 15
Rep:
|
I'd take a look at your permissions for the exported directory. Try bringing it all the way forward (777) then scaling back.
|
|
|
|
05-12-2009, 11:40 AM
|
#7
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
Its 777 what chmod says.
se-Linux is disabled too.
|
|
|
|
05-12-2009, 11:49 AM
|
#8
|
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,782
Rep: 
|
Quote:
Originally Posted by your_shadow03
Its 777 what chmod says.
se-Linux is disabled too.
|
What about the firewall? Any firewalls involved?
-C
|
|
|
|
05-12-2009, 10:37 PM
|
#9
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
Code:
#service iptables stop
shows no output
|
|
|
|
05-12-2009, 11:26 PM
|
#10
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,261
|
That's normal for *nix. If you issue a basic cmd and it works, there's normally no output.
what we need is
iptables -L
on both systems when iptables is up. Mind you if it doesn't work after you've stopped iptables on BOTH systems, then its not an iptables issue.
Have checked tcp_wrappers (hosts.allow, hosts.deny) in /etc ?
|
|
|
|
05-13-2009, 03:09 AM
|
#11
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
/etc/hosts.allow and /etc/hosts.deny seems to be completely hashed.
|
|
|
|
05-13-2009, 03:11 AM
|
#12
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
[root@131e ~]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@131e ~]#
|
|
|
|
05-13-2009, 03:13 AM
|
#13
|
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,413
Original Poster
Rep:
|
May 13 08:14:13 131e rpc.mountd: refused mount request from rh1 for /tmp/resd (/): not exported
|
|
|
|
05-13-2009, 10:06 AM
|
#14
|
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , Solaris 10, RHEL
Posts: 1,782
Rep: 
|
Quote:
Originally Posted by your_shadow03
May 13 08:14:13 131e rpc.mountd: refused mount request from rh1 for /tmp/resd (/): not exported
|
Question...
Are you using /etc/hosts.allow /etc/hosts.deny?
-C
|
|
|
|
05-13-2009, 07:54 PM
|
#15
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 15,261
|
Use
service iptables stop
on BOTH systems and try again. If it doesn't work, show us hosts.allow, hosts.deny from BOTH systems. Saying they are 'hashed' is meaningless!
(They are plain text files)
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:20 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|