I am adding users using the command useradd in opensuse 12.1 and creating a home directory on NFS. The problem here is the home directory's owner is root instead of user.
msvlsi67:~ # useradd -g users -d /export/home/raj67 -m raj67
useradd: Warning: chown on `/export/home/raj67' failed: Invalid argument
Cannot change owner/group for `/export/home/raj67': Invalid argument
Cannot change permissions for `/export/home/raj67/.emacs': Invalid argument
Cannot change permissions for `/export/home/raj67/.bashrc': Invalid argument
Cannot change permissions for `/export/home/raj67/.inputrc': Invalid argument
Cannot change permissions for `/export/home/raj67/.xinitrc.template': Invalid argument
Cannot change permissions for `/export/home/raj67/bin': Invalid argument
Cannot change permissions for `/export/home/raj67/.local': Invalid argument
Cannot change permissions for `/export/home/raj67/.xim.template': Invalid argument
Cannot change permissions for `/export/home/raj67/.vimrc': Invalid argument
Cannot change permissions for `/export/home/raj67/.config': Invalid argument
Cannot change permissions for `/export/home/raj67/.bash_history': Invalid argument
Cannot change permissions for `/export/home/raj67/.fonts': Invalid argument
Cannot change permissions for `/export/home/raj67/.profile': Invalid argument
Cannot change permissions for `/export/home/raj67/public_html/.directory': Invalid argument
Cannot change permissions for `/export/home/raj67/public_html': Invalid argument
useradd: Copying of skel directory failed.
msvlsi67:/export/home # ll |grep raj67
drwxr-xr-x 2 root root 4096 Apr 12 2012 raj67
msvlsi67:/export/home #
I tried adding users using the GUI but still the owner is root. using chown for home directory also gave the same error.
Could anyone please help in fixing this issue?
Thank you.