Find the answer to your Linux question:
Results 1 to 2 of 2
I have 3 servers, A , B and C A is the "master" and I've set up an nfs share between B. That's working fine. I then created a nfs ...
  1. #1
    Just Joined!
    Join Date
    Sep 2009
    Posts
    3

    NFS not working between servers, Permission Denied

    I have 3 servers, A , B and C

    A is the "master" and I've set up an nfs share between B.
    That's working fine.

    I then created a nfs share between A and C. I can see the share with ls -al
    but I can't copy files between A and C. I can copy between A and B ??

    When I try to copy a file between A and C I get this error:

    bash-3.2$ cp test.html /mnt/share2
    cp: cannot create regular file `/mnt/share2/test.html': Permission denied

    on server A I have a /etc/fstab

    A:/var/www/html/folder1 /mnt/share nfs owner,rw 0 0
    B:/html/folder1 /mnt/share2 nfs owner,rw 0 0

    after I restart nfs and netfs I can , cd to both /mnt/share and /mnt/share2

    I need to use a user with name "user1" to copy the files

    when I cd to /mnt and do a ls -al I see
    drwxr-xr-x 2 user1 user1 122880 Sep 10 17:01 share
    drwxr-xr-x 2 dummy2 dummy7 118784 Aug 26 17:06 share2

    NOT SURE why share2 has dummy2 and dummy7 as owners ??
    It used to show just the group ids I think, but I created a few dummy users dumm2, dummy3, etc and it showed those dummy names instead

    I tried using gpasswd -a user group
    to make sure that user1 was in group dummy2 and dummy7, dummy2 in user1 and dummy7 and dummy7 in user1 and dummy2 groups ... just to have it all covered. but still have the same problem

    I don't use /etc/hosts.allow and /etc.hosts.deny

    /etc/exports on server B
    /var/www/html/folder1 A(rw,sync)

    /etc/exports on server C
    /html/folder1 A(rw,sync)


    on both B and C I have a /etc/hosts file

    10.10.10.101 A

    any ideas would be appreciated !

  2. #2
    Just Joined!
    Join Date
    Sep 2009
    Posts
    3
    I could see that user1 on server B and server C have different user and group ids

Posting Permissions

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