ZFS mount: cd .. or ls .. permission denied

Problem : When moving up from one ZFS mount point to a parent directory (also a zfs mount point) using the ".. " notation through cd or ls permission is denied, however cd and ls will access directories when explicitly naming the directory.

ZFS mounts store the . and .. entries separately for their mounted and unmounted states. So when the zfs mount is in it’s mounted state, the . and .. commands will work properly, however if they mount is in the unmounted state an access denied response will display for all non root users. This is because zfs . and .. entries are owned by root in the unmounted state by default, and permissions for them need to be set separately when the zfs mount is unmounted in order for other users to use those entries.

This particular issue will cause problems in situations such as applying patches to those mount directories for programs such as oracle.

Leave a Reply

Your email address will not be published. Required fields are marked *