Solaris 10 mount point permissions are important

Solaris

rm: cannot determine if this is an ancestor of the current working directory

This is caused by an underlying mount point permission that is too strict (700). You can change the permissions on the mount point without unmounting the volume by using lofs creatively:

#create temp directory

server1> mkdir -m 755 /fix-mnt 

# mount the directory which contains the mount point, not the mount point itself, but its parent directory.

server1> mount -F lofs -o nosub /users/zones/server1-z3/root/users/  /fix-mnt
server1> ls -ld /fix-mnt/mountpoint        #confirms the permssions are not 775
server1> chmod 775 /fix-mnt/mountpoint
server1> umount /fix-mnt
server1> rmdir /fix-mnt

Share
2 Comments

2 Responses

  1. Nick says:

    Thanks, this is just what I wanted.

    Nick

  2. this is a deeply riveting post, acknowledgement you on the information. Wretched my english is not the very best. do you be versed if it is tenable to turn this to the spanish language. that would be sheer helpfull.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>