Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today!
Try Our New Product Showcase!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > NFS Connection Refused.

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Forums
Linux Articles
Product Showcase
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Free Publications




Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-03-2007   #1 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,406
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
NFS Connection Refused.

Hello, I did setup a NFS share on this Gentoo box with the following /etc/exports file:
Code:
/home/john/ 192.168.1.1(async,rw)
When I start the nfs function I get:
Code:
/etc/init.d/nfs start
Exporting NFS subtree_check not set setting to default No_subtree_check [Ok]
Starting NFS mountd [Ok]
Starting NFS Daemon [!!]
Starting NFS smnotify [Ok]
When I go to the box that is going to connect I get:
ifconfig
Code:
venet0-00 (Yea its a OpenVZ box)
inet addr:192.168.1.1
And on
Code:
mount 192.168.1.11:/home/john/ /home/_sxb/
I get
Code:
mount : 192.168.1.11:/home/john/ failed, reason given by server: Permission denied
I did think about the /etc/hosts.allow file but I cant find that in the Documentation I used to set this up.

I know this aint really secure. And that I should user Kerb. but I just need to sketch a Demo for my Boss..

Cheers,
Robin
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline  



Reply With Quote
Old 12-03-2007   #2 (permalink)
Linux Enthusiast
 
Join Date: Aug 2006
Location: Portsmouth, UK
Posts: 516
Quote:
Starting NFS Daemon [!!]
Are you sure that nfs is up and running properly ?

Can you see the exported file systems when you run
Code:
# exportfs
on the nfs host machine ?
__________________
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.
matonb is offline   Reply With Quote
Old 12-03-2007   #3 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,406
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
Well I saw that aswell thats why I did post it.
I assumed it was running since I got auth mistake instead of Unable to Connect.
and when I do exportfs I get /home/john 192.168.1.1
So yea I guess its running.
There is no Firewall or what so ever between the boxes.

Cheers,
Robin
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Old 12-03-2007   #4 (permalink)
Linux Enthusiast
 
Join Date: Aug 2006
Location: Portsmouth, UK
Posts: 516
nfs send user ID's not names, could be that account john on box A and john on box B user ID's don't match which would then make it a file/dir permissions issue
__________________
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.
matonb is offline   Reply With Quote
Old 12-03-2007   #5 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,406
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
Well there isnt a user called John on that box.
The user is called _sxb there.

Is there a way to remove the UID checking and just let it go on the IP addrs that is allowed. (Since I thought it worked like that)
I will implent Kerb. later anyhow.
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Old 12-03-2007   #6 (permalink)
Linux Enthusiast
 
Join Date: Aug 2006
Location: Portsmouth, UK
Posts: 516
Quote:
Well there isnt a user called John on that box.
The user is called _sxb there.

Is there a way to remove the UID checking and just let it go on the IP addrs that is allowed. (Since I thought it worked like that)
I will implent Kerb. later anyhow.

No I don't think so. Why not just create a share point "/exports/demo" for example, set loose permissions and export that?

Exporting your /home/<user> directory in this situation isn't your best option.
__________________
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.
matonb is offline   Reply With Quote
Old 12-03-2007   #7 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,406
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
Well it is. Since that box that is goes to is in a SecureNetwork and is the Application Server.
Since I want everyuser to have its Own Application Settings and the application runs on the server and just Tunnels the Graphical user Interface the HomeFolder of the user has to be mounted there.
Since its a ApplicationServer Nobody else then John may know he uses the box.
So if you check on the Application server in the /home/ folder nobody may see the Name John. only his Code name '_sxb'
So I have to mount the folder /home/john to the Application Server under his Code name /home/_sxb.
John also starts Apps using the line
Code:
ssh -2 -c blowfish -X _sxb@appserver firefox
So, Well I have to mount over the homefolder with that Reason
Ill try to give them the same UID if that will work?
(I only have to change the shadow and the passwd file then right?)


ps.
The entire HOME folder is done since that the user also has to Save his Files he made with Abiword to the /home/_sxb

Cheers,
Robin
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Old 12-03-2007   #8 (permalink)
Linux Enthusiast
 
Join Date: Aug 2006
Location: Portsmouth, UK
Posts: 516
Quote:
but I just need to sketch a Demo for my Boss..
Was what I meant by not your best option. You could create a john account on the remote machine and match the uid's for your demo.

You probably want to look at nfs automounter if your looking to mount user home directories on a remote server.
__________________
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.
matonb is offline   Reply With Quote
Old 12-03-2007   #9 (permalink)
Linux Enthusiast
 
Join Date: Aug 2006
Location: Portsmouth, UK
Posts: 516
And yes if you give _sxb the same id's as John that will work (as long as another user isn't using them already!).
__________________
RHCE #805007238628267
Please don't PM me with questions as no reply may offend, that's what the forums are for.
matonb is offline   Reply With Quote
Old 12-03-2007   #10 (permalink)
Linux Engineer
 
RobinVossen's Avatar
 
Join Date: Aug 2007
Location: The Netherlands
Posts: 1,406
Send a message via ICQ to RobinVossen Send a message via MSN to RobinVossen
Well the user Johns PC is on the box that the user (John ofc) uses to connect to the AppServer..
I cant use a AutoMounter since they use the /etc/inittab and this Appserver will never CloseDown.

So, you say i should just change the /etc/shadow and /etc/passwd PID of the user accounts so they are the same?

Cheers,
Robin

[Edit]
I saw you posted Quickly before I saw your new post.
Ill do that now


[Edit2]
you wont belive this.
They already were both UID 1001

Cheers,
Robin
__________________
My webpage: codeinject.org
New Users, please read this..
Google first, then ask..
RobinVossen is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Implementing Detailed User-Level Auditing of UNIX & Linux Systems
Enhance regulatory compliance and troubleshooting through detailed auditing, logging and real-time monitoring of UNIX/Linux user activity.
subscribe
Linux from Scratch - Receive Your Complimentary eBook NOW!
Linux from Scratch describes the process of creating your own Linux system from scratch from an already installed Linux distribution, using nothing but the source code of software that you need.
subscribe
A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)
Getting Started with Ubuntu 10.04 (Lucid Lynx) is a comprehensive beginners guide for the Ubuntu operating system; it features comprehensive guides, How Tos and information on anything you need to know after first installing Ubuntu.
subscribe
The Incredible Guide to NEW Ubuntu (Karmic Koala)
There are a lot of people still stuck with Windows because it's the ‘easier alternative'. Linux is both cheaper and more versatile than Microsoft's operating system, but the learning curve has frightened off many people.
subscribe
The GNU/Linux Advanced Administration
The GNU/Linux systems have reached an important level of maturity, allowing to integrate them in almost any kind of work environment, from a desktop PC to the sever facilities of a big company.
subscribe
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe



All times are GMT. The time now is 06:15 AM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1