Good morning, I am working and changing the ownership folder of my home, but I cannot run chown command. It is Error “Invalid argument”. This is indeed an NFS4 issue. The error chown Invalid argument as following below:
[root@Client ~]# chown -R huupv:huupv /home/huupv
chown: changing ownership of `huupv/.bashrc': Invalid argument
chown: changing ownership of `huupv': Invalid argument
Table of Contents
My environment
Client <---> NFS server
How can I fix the chown Invalid argument this
You need to check step by step as below:
NFS client:
[root@Client ~]# cat /etc/redhat-release
Centos 6
NFS Server
[root@DevopsRoles ~]# cat /etc/redhat-release
Centos 7
Configure NFS server
[root@DevopsRoles ~]# cat /etc/exports
The Content in file exports
#Data Volume Share
/mnt/data 192.168.1.12(rw,sync,no_root_squash,no_subtree_check)
Solve Problem
From the Client, we will umount and mount as below
[root@Client ~]# umount /mnt/data # if umount is busy then you need run umount -lf /mnt/data [root@Client ~]# mount -t nfs -o vers=3 192.168.1.13:/mnt/data /mnt/data [root@Client ~]# chown -R huupv:huupv /home/huupv
You have solved the problem “chown Invalid argument centos” Thank you for reading the DevopsRoles page!