NFS Access setup

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.

Who is Participating?
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).
run 'id' command on l3 (from that user, who is not able to write files on nfs share):
and post output here
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.

mehranalmasiAuthor Commented:
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
mehranalmasiAuthor Commented:
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


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.