[systemd-devel] fuse-sshfs and x-systemd.automount
Reindl Harald
h.reindl at thelounge.net
Sun Aug 16 07:05:15 UTC 2020
Am 16.08.20 um 07:51 schrieb Andrei Borzenkov:
> 15.08.2020 23:56, Reindl Harald пишет:
>> is it a bug or a concept issue that it's mounted fpr root instead auf
>> the user given with uid or is there just a param i am not aware mising?
>
> allow_other
works, but changes the owner to root and inherits chmod 755 from the
remote diretory and so *everyone* can access it, mode is not supported
fuse: unknown option(s): `-o mode=0700'
noauto,user,rw,noexec,nosuid,nodev,noatime,uid=harry,gid=verwaltung,allow_other,x-systemd.automount
> how is it relevant to systemd?
how is it not given it#s a systemd-option and what is your f** problem?
>> there are 20 mountpoints of that style and automount would be really cool
>>
>> i wouldn't even mind if touching by root would mount it for mewith root
>> having no access as expected for fuse-mounts of that style
>>
>> they are all excluded for mlocate
>>
>> -----------------------------------
>>
>> sshfs#reindl at arrakis:/ /mnt/arrakis fuse
>> noauto,user,rw,noexec,nosuid,nodev,noatime,uid=harry,gid=verwaltung,x-systemd.automount
>>
>> -----------------------------------
>>
>> Aug 15 22:43:46 srv-rhsoft systemd[1]: Set up automount
>> mnt-arrakis.automount.
>> Aug 15 22:43:51 srv-rhsoft systemd[1]: mnt-arrakis.automount: Got
>> automount request for /mnt/arrakis, triggered by 47290 (ls)
>> Aug 15 22:43:51 srv-rhsoft systemd[1]: Mounting /mnt/arrakis...
>> Aug 15 22:43:51 srv-rhsoft kernel: fuse: init (API version 7.31)
>> Aug 15 22:43:51 srv-rhsoft systemd[1]: Mounting FUSE Control File System...
>> Aug 15 22:43:51 srv-rhsoft systemd[1]: Mounted FUSE Control File System.
>> Aug 15 22:43:52 srv-rhsoft systemd[1]: Mounted /mnt/arrakis.
>>
>> [root at srv-rhsoft:~]$ df
>> Dateisystem Typ Größe Benutzt Verf. Verw% Eingehängt auf
>> /dev/md1 ext4 29G 7,6G 22G 27% /
>> /dev/md2 ext4 3,6T 1,2T 2,5T 33% /mnt/data
>> reindl at arrakis:/ fuse.sshfs 126G 58G 68G 47% /mnt/arrakis
>>
>> [harry at srv-rhsoft:~]$ df
>> Dateisystem Typ Größe Benutzt Verf. Verw% Eingehängt auf
>> /dev/md1 ext4 29G 7,6G 22G 27% /
>> /dev/md2 ext4 3,6T 1,2T 2,5T 33% /mnt/data
>> [harry at srv-rhsoft:~]$
>>
>> -----------------------------------
>>
>> Expected:
>>
>> [harry at srv-rhsoft:~]$ df
>> Dateisystem Typ Größe Benutzt Verf. Verw% Eingehängt auf
>> /dev/md1 ext4 29G 7,6G 22G 27% /
>> /dev/md2 ext4 3,6T 1,2T 2,5T 33% /mnt/data
>> reindl at arrakis:/ fuse.sshfs 126G 58G 68G 47% /mnt/arrakis
More information about the systemd-devel
mailing list