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
Related videos on Youtube
Author by
Admin
Updated on September 18, 2022Comments
-
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 isallow_other
there, so other users can write into the mount point too. If I removeallow_other
thenworker
cannot write to the mount point, even though the permissions are shown asworker:workers
in the file system. How can I set the permissions toworker:workers
with permissions 770?-
infinite-etcetera over 7 yearsi 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 over 7 yearsno 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 fromautofs
- perhaps they are trying to replace it, assystemd
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