Thursday, August 14, 2014

ZFS::chmod: changing permissions of Operation not permitted

Problem: 

I can't change a folder permissions running on NFS client:

chmod: changing permissions of <somedir>: Operation not permitted


But from ZFS/NAS server the command is working


Solutiom: 


You need to add no_root_squash to your /etc/exports

But if you are running ZFS, you'll need to set

#sharemgr set -P nfs -p anon=0 zfs/data

Where zfs/data is name of your pool
Then you can check:

#sharemgr show -vp

Output:
default nfs=()

zfs

    zfs/rpool nfs=()
          /rpool
    zfs/data nfs=(anon="0")
          /data

read more:
http://prefetch.net/blog/index.php/2009/05/05/using-sharemgr-to-manage-nfs-file-systems-on-opensolaris-hosts/

No comments:

Post a Comment