I tried mounting a directory like so:

  mount --bind -o umask=0117 /home/files /home/glen/files

What I am shooting for, is that all files created in 
/home/glen/files will have the permissions 660. But the above 
command seems to have no effect on permissions of created files.

I have also tried this with no luck:

  mount --bind -o fmask=0117 /home/files /home/glen/files

Then I read the man page:

  Note that the filesystem mount options will remain the same  as  
  those on  the original mount point, and cannot be changed by 
  passing the -o option along with --bind/--rbind.

I take that to mean that I cannot change the umask when mounting 
with --bind.

Any ideas on how to achieve my goal?

Thanks in advance!

-- 
Glen 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to