Setting [u|f]mask on a bind mount



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 debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: mounting issues
    ... Are you saying to set the setgid (using chown) to a non root group? ... the user that is mounting the drive already ... has sudo permissions to mount drives, but to change the ownership, I ... would have to give that user sudo permissions for the chmod binary as ...
    (comp.os.linux.misc)
  • Re: LD_ASSUME_KERNEL support for feisty
    ... Yes, I have the permissions. ... can you execute ?>ldd executable_file and send it to us? ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: Unable to su as a user, I get: Cannot execute /bin/bash: Permission denied
    ... sorry..i lost you on that...you think that someone changed the permissions ... It'll be executed by the user, not root. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ... Also to be a right prat, chmod a-x `which chmod` (don't do it, but i've ...
    (Debian-User)
  • Re: LD_ASSUME_KERNEL support for feisty
    ... Yes, I have the permissions. ... can you execute ?>ldd executable_file and send it to us? ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • RE: allowing non root users to mount
    ... how does this relate to making a common mounting point? ... make the common mounting point /floppy and set the permissions to ... cannot mount the floppy as a regular user. ... 'operation not permitted' and I have to su as root to get this to work. ...
    (freebsd-questions)