2

I mounted an nfsv4 folder (both client and server are CentOS 7.4) via command

$ sudo mount -t nfs -o v4.0,sec=krb5 ark-centos7-ker.qa.arkivio.com:/export/nfs1 /nfs4-mnt-dir 

created a file via: touch 11, then set file's ACL get failed with command

$ sudo nfs4_setfacl -a A::[email protected]:rxtncy /nfs4-mnt-dir/11
[sudo] password for [email protected]:
Failed setxattr operation: Invalid argument 

it seems complaining the parameter [email protected] is invalid, but this user is already recognized by both nfs4 client and server.

$ getent passwd [email protected]
[email protected]:*:1712401226:1712400513:auto-stor:/home/[email protected]:/bin/bash
$ id [email protected]
uid=1712401226([email protected]) gid=1712400513(domain [email protected]) groups=1712400513(domain [email protected] rkivio.com),10(wheel),1712439592([email protected]),1712439438([email protected]),171243989 6([email protected]),1712400512(domain [email protected]),1712439802([email protected] m) 

What is missing in my configuration?

1 Answer 1

0

I am not sure if you found your answer or not but i found nfsv4 works best using gid and uid.

Do i would this for a user

       sudo nfs4_setfacl -a A:d:180001:RWX /path/to/file

For a group it is

        sudo nfs4_setfacl -a A:g:29111:RWX /path/to/file

Easiest way to get the uid and gid is

        id -u username
        getent group groupname

Just replace the junk UID and GID i put in the commands with a real one on your system and it will work.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .