Having a small problem with NFSv4. I'm trying to share three directories from a Gutsy Gibbon machine (x86 - 32-bit) to two Hardy Heron machines (both x86_64 - 64-bit). All are running Kubuntu.
I am able to technically get the three directories, owned by root:staff (with internal contents being owned by one of the two users on my network and the group ownership on everything set to staff) mounted by the two Hardy Heron machines. The problem is that regardless of options chosen in /etc/exports on the Gutsy Gibbon machine it is always mounted as "nobody:nogroup" for not only directory but all internal contents for the two Hardy Heron machines.
I have tried "all_squash" and "anon_gid/anon_uid" set to no avail. I have also tried just "root_squash" and even "no_root_squash" also to no avail. After every modification to /etc/exports I have restarted the nfs-kernel-server on the Gutsy Gibbon machine. I have verified that the UIDs and GIDs are identical across all three systems.
The /etc/exports is attached below:
I am able to technically get the three directories, owned by root:staff (with internal contents being owned by one of the two users on my network and the group ownership on everything set to staff) mounted by the two Hardy Heron machines. The problem is that regardless of options chosen in /etc/exports on the Gutsy Gibbon machine it is always mounted as "nobody:nogroup" for not only directory but all internal contents for the two Hardy Heron machines.
I have tried "all_squash" and "anon_gid/anon_uid" set to no avail. I have also tried just "root_squash" and even "no_root_squash" also to no avail. After every modification to /etc/exports I have restarted the nfs-kernel-server on the Gutsy Gibbon machine. I have verified that the UIDs and GIDs are identical across all three systems.
The /etc/exports is attached below:
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/export loki(rw,fsid=0,sync,no_subtree_check,all_squash,an onuid=1000,anongid=50)
/export anubis(rw,fsid=0,sync,no_subtree_check,all_squash, anonuid=1001,anongid=50)
/export/Music loki(rw,no_subtree_check,sync,no_root_squash,all_s quash,anonuid=1000,anongid=50)
/export/Music anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
/export/Pictures loki(rw,no_subtree_check,sync,all_squash,anonuid=1 000,anongid=50)
/export/Pictures anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
/export/Videos loki(rw,no_subtree_check,sync,all_squash,anonuid=1 000,anongid=50)
/export/Videos anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
# to NFS clients. See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes hostname1(rw,sync) hostname2(ro,sync)
#
# Example for NFSv4:
# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt)
# /srv/nfs4/homes gss/krb5i(rw,sync)
#
/export loki(rw,fsid=0,sync,no_subtree_check,all_squash,an onuid=1000,anongid=50)
/export anubis(rw,fsid=0,sync,no_subtree_check,all_squash, anonuid=1001,anongid=50)
/export/Music loki(rw,no_subtree_check,sync,no_root_squash,all_s quash,anonuid=1000,anongid=50)
/export/Music anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
/export/Pictures loki(rw,no_subtree_check,sync,all_squash,anonuid=1 000,anongid=50)
/export/Pictures anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
/export/Videos loki(rw,no_subtree_check,sync,all_squash,anonuid=1 000,anongid=50)
/export/Videos anubis(rw,no_subtree_check,sync,all_squash,anonuid =1001,anongid=50)
Comment