<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 13, 2023 at 2:34 PM Simão <<a href="mailto:freedesktop.org@0null.xyz" target="_blank">freedesktop.org@0null.xyz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have the following entry in my fstab:<br>
<br>
```<br>
/home/simao/bin/encfs-mount#sync /home/simao/sync fuse noauto,user,owner,x-systemd.automount,allow_other 0 0<br>
```<br>
<br>
This calls my encfs-mount script to mount an encfs volume. That script uses `sudo -u simao` to actually call encfs, because I want the volume to be mounted as a user.<br>
<br>
Running `sudo systemctl start home-simao-sync.mount` mounts the volume correctly, and I can access it as a normal user.<br>
<br>
But umounting the volume and enabling `home-simao-sync.automount` does not work, I get the following in `journalctl`:<br>
<br>
```<br>
Mar 13 10:02:35 asterix sudo[476185]: pam_unix(sudo:session): session opened for user simao(uid=1000) by (uid=0)<br>
Mar 13 10:02:36 asterix mount[476190]: fusermount: user has no write access to mountpoint /home/simao/sync<br>
Mar 13 10:02:36 asterix mount[476188]: fuse failed. Common problems:<br>
Mar 13 10:02:36 asterix mount[476188]: - fuse kernel module not installed (modprobe fuse)<br>
Mar 13 10:02:36 asterix mount[476188]: - invalid options -- see usage message<br>
```<br>
<br>
That directory has the correct permissions, otherwise `.mount` would not work.<br>
<br>
Running my script with strace, the only interesting line is:<br>
<br>
```<br>
Mar 13 10:00:14 asterix mount[475558]: touch: setting times of '/home/simao/sync': Permission denied<br>
```<br>
<br>
But I can touch that dir as my user.<br>
<br>
Any ideas of what might be wrong?<br>
</blockquote></div><div><br></div><div>An automount placeholder is, itself, a special kind of mount – as long as the .automount unit is active, the path is no longer owned by you because the "sync" directory has an 'autofs' filesystem mounted on top of it. (See `findmnt`.)<br></div><br><span>-- </span><br><div dir="ltr"><div dir="ltr">Mantas Mikulėnas</div></div></div>