Autofs 770 mount point permission

7,599

Have you tried using file_mode and dir_mode option?

-fstype=fuse,uid=worker,gid=workers,file_mode=0660,dir_mode=0770 ://server/share

Share:
7,599

Related videos on Youtube

Admin
Author by

Admin

Updated on September 18, 2022

Comments

  • Admin
    Admin over 1 year

    In /etc/auto.sshfs I write this:

    -fstype=fuse,uid=worker,gid=workers,rw,allow_other [etc other options]
    

    Then it correctly sets the mount point permissions to worker:workers when it mounts automatically. The problem is there is allow_other there, so other users can write into the mount point too. If I remove allow_other then worker cannot write to the mount point, even though the permissions are shown as worker:workers in the file system. How can I set the permissions to worker:workers with permissions 770?

    • infinite-etcetera
      infinite-etcetera over 7 years
      i am also trying to lock this down, and am getting very tired of autofs entirely, as a result. might have to try systemd's approach
  • infinite-etcetera
    infinite-etcetera over 7 years
    no i haven't designed a font before, i just use source code pro alot. the example utilizes systemd which is core software that is a part of almost all linux distributions nowadays, and is very likely made by completely different developers, though they clearly copied some features from autofs - perhaps they are trying to replace it, as systemd already replaces some other older core linux software. i just wanted to write something up about it, as i didn't feel i could find what i was looking for, online, for a long while