Find the answer to your Linux question:
Results 1 to 3 of 3
I have been trying to set up NFS so that I can backup the home directory on my laptop to my server. I have enabled NFS on my server and ...
  1. #1
    Just Joined!
    Join Date
    Apr 2008
    Location
    Georgia, US
    Posts
    53

    Exclamation Trouble with NFS

    I have been trying to set up NFS so that I can backup the home directory on my laptop to my server. I have enabled NFS on my server and edited the export file to look like this:

    Code:
    /home/Cody      192.168.1.0/255.255.255.0(rw)
    I have also edited my /etc/host.allow file to look like this:

    Code:
    portmap: 192.168.1.101
    lockd: 192.168.1101
    rquotad: 192.168.1.101
    mountd: 192.168.1.101
    statd: 192.168.1.101
    When I try to mount the /home/Cody folder on my server to my laptop I get this error though

    Code:
    [Nick@Cody-Laptop ~]$ sudo mount -t nfs 192.168.1.136:/home/Cody /rdir/Cody
    mount.nfs: access is denied by server while mounting 192.168.1.136:/home/Cody
    I have done chmod 746 on the directories that I am both trying to mount and mount to. Also suspecting it is my firewall I tried turning it off, and still no luck. I've tried looking up the answer on google, but I had no useful results.

  2. #2
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    on your server, cd to /var/log and try to find where your NFS file logs (if you dont see anything that is obviously nfs, try doing `egrep -i "nfs" /path/to/log` to see if a file might have the nfs log in there. Your log files on your server are going to be the best bet as to why something failed. If everything looks good, check the logs on your client.
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

  3. #3
    Linux Enthusiast
    Join Date
    Aug 2006
    Location
    Portsmouth, UK
    Posts
    539
    The user names are different (what actually matters to nfs is the uid though) and your permissions 746 would not allow "other" to open / enter the directory /home/Cody as the execute bit isn't set. You could try chmoding it to 747...

    Although it's not what I would recommend. You would be better off matching your laptop user and server user id's and keeping stricter permissions on your home directory.
    RHCE #100-015-395
    Please don't PM me with questions as no reply may offend, that's what the forums are for.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...