LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-11-2006, 01:14 AM   #1
vamseekrishna
LQ Newbie
 
Registered: Sep 2006
Location: Bangalore
Posts: 6

Rep: Reputation: 0
Problem mounting shared files using NFS


I have an NFS server(installed on RHEL3.0) running in the network.
When I try to mount the shared files using NFS client service from a client machine(client 1), it gives the following error"mount: 172.24.30.6:/nfs/abc failed, reason given by server: Permission denied".

But Im able to mount the same file from other clients in my network.

The shared file is shared to whole world.
/nfs/abc *(ro,sync)---Line added in the /etc/exports file.

Last edited by vamseekrishna; 12-11-2006 at 02:29 AM.
 
Old 12-11-2006, 02:27 AM   #2
tshrinivasan
Member
 
Registered: Jan 2006
Location: Chennai, Tamil nadu, India
Distribution: Debian Etch Testing
Posts: 117

Rep: Reputation: 16
restart the nfs server and the portmap
check using
#exportfs -a

check now and tell what happened?

T.Shrinivasan
 
Old 12-11-2006, 11:56 PM   #3
vamseekrishna
LQ Newbie
 
Registered: Sep 2006
Location: Bangalore
Posts: 6

Original Poster
Rep: Reputation: 0
I have done that but I still have the problem.
Im not able to mount those shared files only from one client.
Will there be any configuration files for NFS wherein we can restrict few clients from mounting the shared files.
 
Old 12-12-2006, 03:09 AM   #4
tshrinivasan
Member
 
Registered: Jan 2006
Location: Chennai, Tamil nadu, India
Distribution: Debian Etch Testing
Posts: 117

Rep: Reputation: 16
Via firewall we can restrict the other systems.

stop the iptables by
service iptables stop

in client only root can mount the nfs file system.
try mounting as root.

can you ping the machine.

test by
nmap <nfs server name or ip>
can u see the services.
 
Old 12-12-2006, 03:11 AM   #5
tshrinivasan
Member
 
Registered: Jan 2006
Location: Chennai, Tamil nadu, India
Distribution: Debian Etch Testing
Posts: 117

Rep: Reputation: 16
http://www.linuxquestions.org/questi...ad.php?t=79868
 
Old 12-12-2006, 07:19 AM   #6
mlsx
LQ Newbie
 
Registered: Oct 2006
Location: china
Distribution: RedFlag
Posts: 16

Rep: Reputation: 0
you means you it works well in localhost?
check the nfs server's status

/etc/init.d/nfs status

sometime,the nfs server will become to zombile if occurred,restart
 
Old 12-13-2006, 12:28 AM   #7
vamseekrishna
LQ Newbie
 
Registered: Sep 2006
Location: Bangalore
Posts: 6

Original Poster
Rep: Reputation: 0
I have some 10-15 files exported from the NFS server.
From a particular client machine im able to mount all the shared files except 2 files.

When i try mounting these two particular files an error "Permission denied from server" is displayed.

Firewall is stopped.

Last edited by vamseekrishna; 12-13-2006 at 12:32 AM.
 
Old 12-13-2006, 12:47 AM   #8
vamseekrishna
LQ Newbie
 
Registered: Sep 2006
Location: Bangalore
Posts: 6

Original Poster
Rep: Reputation: 0
Hi Srinivashan,

Ur link really helped me knowing some useful information.
I have some lines added in the /etc/hosts file related to my client machine.
Even after removing them, im not able to mount the two particular shares.
When I execute the "exportfs -r" It gives an error message for the two particular shares against the client.The error message displayed is as follows,
client.company.com:/nfs/abc:Invalid argument

Im able to ping from my server to client and vice versa

Thanks a lot,
Vamsee

Last edited by vamseekrishna; 12-13-2006 at 01:15 AM.
 
  


Reply



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
Problem while Mounting through NFS livetoday Red Hat 4 10-20-2006 03:26 AM
Trouble mounting files using nfs Robeasts Linux - Newbie 2 09-14-2006 12:59 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
nfs mounting problem Frustin AIX 5 02-04-2005 11:29 AM
problem mounting NFS goldkanal Linux - Networking 3 01-30-2005 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:42 PM.

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
Open Source Consulting | Domain Registration