NFS Access setup

Posted on 2006-03-29
Last Modified: 2012-06-27
I have three Linux boxes - l1, l2 and l3.
l1 is making three directories available using this exports file:

I can open and write to nfs mounted directories when logged into l2 with this fstab file:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup_ID_14268/LogVol1 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup_ID_14268/LogVol2 /tmp                    ext3    defaults        1 2
/dev/VolGroup_ID_14268/LogVol5 /usr                    ext3    defaults        1 2
/dev/VolGroup_ID_14268/LogVol4 /var                    ext3    defaults        1 2
/dev/VolGroup_ID_14268/LogVol0 swap                    swap    defaults        0 0
/dev/VolGroup_ID_14268/LogVolHome /home                ext3    defaults        1 2
# LABEL=/home-7612             /home                   ext3    defaults        1 2
sierra:/z1      /sierra/z1      nfs      bg,soft,intr      0      0
sierra:/z2      /sierra/z2      nfs      bg,soft,intr      0      0
sierra:/z3      /sierra/z3      nfs      bg,soft,intr      0      0
/dev/hda                /media/cdrom            auto    pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0

The problem is when I copied the fstab part from l2 that starts with sierra and pasted it into fstab of l3 and mounted them from l1 to l3, I can open the files but can not write to them when logged into l3.

what should be looking into to fix?

thanks in advance.

Question by:mehranalmasi
    LVL 27

    Expert Comment

    run 'id' command on l3 (from that user, who is not able to write files on nfs share):
    and post output here
    LVL 3

    Expert Comment

    what are the IP addresses of the machines?

    What is the error message?

    when it fails, report the IDS (as above) and paste the outputof
    touch foo
    Also do:
    ls -ld .
    wherever we're trying to write.


    Author Comment

    uid=605(username) gid=602(ae) groups=602(ae) context=user_u:system_r:unconfined_t

    ip address of l3 is

    touch foo
    touch: cannot touch 'foo': permission denied

    ls -ld
    drwxr-xr-x 50 702 700 4096 mar 27 17:22

    Author Comment

    I found the problem. The user did not belong to the write group. here is the configuration and you will get the points if you explain to me the mechanics of this setup in L2 and L3:

    group in /etc

    passwd in /etc

    ls -l when in sierra:
    drwxrwxr-x 11  av  av  4096 Mar 30 16:36 z1
    same thing for z2 and z3


    LVL 27

    Accepted Solution

    Try to append user1 who cannot write to /etc/group on L1 (where share is located):

    this appends that user to additional group (which is checked when accessing local to L1 files).

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now