Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-29-2008, 04:52 AM   #1
Registered: Apr 2008
Posts: 60

Rep: Reputation: 15
Lightbulb Problem with NFS

i have installed the NFS server on my system
and i shared two directory
1- /home/pcy pcy is a user
i am able to access the /var/ftp/downloading after mounting it
but tried to access /home/pcy after mounting it shows error like
Permission denied
can any body help me
Old 04-29-2008, 05:00 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678
Are you the same user with the same UID on both the server and the client?
Old 04-29-2008, 10:06 AM   #3
Registered: Jan 2005
Location: Summer Midwest USA, Central Illinois, Winter Central Florida
Distribution: SlackwareŽ
Posts: 13,502
Blog Entries: 32

Rep: Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673Reputation: 2673

You do need to setup the '/etc/exports', '/etc/hosts', '/etc/hosts.allow' and '/etc/hosts.deny' files. Once you have the proper structure then as root 'exportfs -ra' will update the table.

excerpt from 'man exports';

EXPORTS(5)                 Linux File Formats Manual                EXPORTS(5)

       exports - NFS file systems being exported (for Kernel based NFS)


       The  file  /etc/exports serves as the access control list for file sys-
       tems which may be exported to NFS clients.  It is used  by  exportfs(8)
       to  give  information  to  mountd(8)  and  to the kernel based NFS file
       server daemon nfsd(8).

       The file format is similar to the SunOS exports file.  Each  line  con-
       tains  an  export  point  and  a  whitespace-separated  list of clients
       allowed to mount the file system at that point. Each listed client  may
       be  immediately  followed  by  a parenthesized, comma-separated list of
       export options for that client. No whitespace is  permitted  between  a
       client and its option list.
excerpt from 'man exportfs';

       exportfs - maintain list of NFS exported file systems

       /usr/sbin/exportfs [-avi] [-o options,..] [client:/path ..]
       /usr/sbin/exportfs -r [-v]
       /usr/sbin/exportfs [-av] -u [client:/path ..]
       /usr/sbin/exportfs [-v]
       /usr/sbin/exportfs -f

       The  exportfs command is used to maintain the current table of exported
       file systems for NFS. This list  is  kept  in  a  separate  file  named
       /var/lib/nfs/xtab  which  is read by mountd when a remote host requests
       access to mount a file tree, and parts of the list which are active are
       kept in the kernel's export table.
You should 'man exports' and 'man exportfs' to get a understanding of the commands and necessary structure.


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
NFS problem jasone Linux - General 3 11-26-2006 03:00 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 02:35 PM
problem with nfs kamesh3183 Linux - Newbie 5 07-25-2004 12:51 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration