added permission for pubfile op & get_subdir/dirents