I have a couple of /etc/fstab entries which include the options "noauto,nofail,user,x-systemd.automount", yet when I reboot the system those entries are being mounted, despite the "noauto".
Furthermore, under my user account I can't access them:
$ sudo ls -ld GDrive/Media/ drwxrwxr-x. 1 poc poc 16 Feb 19 10:46 GDrive/Media/
$ sudo ls -l GDrive/Media/ total 0 drwxr-xr-x. 1 root root 0 Jun 3 11:24 Movies drwxr-xr-x. 1 root root 0 Jun 3 11:24 TV
$ ls GDrive/Media/ ls: cannot access 'GDrive/Media/TV': Permission denied ls: cannot access 'GDrive/Media/Movies': Permission denied
The mounting is done via Rclone, if it matters. If I run it manually as myself it works as expected, so apparently this is somehow being caused by systemd running as root., even though the directory permissions appear to be as they should.
Is there a way to fix this without having to create a separate systemd mount unit?
poc
On Fri, 2022-06-03 at 11:53 +0100, Patrick O'Callaghan wrote:
I have a couple of /etc/fstab entries which include the options "noauto,nofail,user,x-systemd.automount", yet when I reboot the system those entries are being mounted, despite the "noauto".
It turns out that using x-systemd.automount means that noauto is ignored.
Furthermore, under my user account I can't access them:
$ sudo ls -ld GDrive/Media/ drwxrwxr-x. 1 poc poc 16 Feb 19 10:46 GDrive/Media/
$ sudo ls -l GDrive/Media/ total 0 drwxr-xr-x. 1 root root 0 JunĀ 3 11:24 Movies drwxr-xr-x. 1 root root 0 JunĀ 3 11:24 TV
$ ls GDrive/Media/ ls: cannot access 'GDrive/Media/TV': Permission denied ls: cannot access 'GDrive/Media/Movies': Permission denied
The mounting is done via Rclone, if it matters. If I run it manually as myself it works as expected, so apparently this is somehow being caused by systemd running as root., even though the directory permissions appear to be as they should.
Is there a way to fix this without having to create a separate systemd mount unit?
Can't be bothered delving into this. I just removed the automount option and will mount with a login script, which is what I actually want anyway.
poc
On 6/4/22 13:24, Patrick O'Callaghan wrote:
On Fri, 2022-06-03 at 11:53 +0100, Patrick O'Callaghan wrote:
I have a couple of /etc/fstab entries which include the options "noauto,nofail,user,x-systemd.automount", yet when I reboot the system those entries are being mounted, despite the "noauto".
This reminds me of an old heated discussion, the famous "we took the liberty".
https://www.mail-archive.com/devel@lists.fedoraproject.org/msg13652.html
Regards.
On Sat, 2022-06-04 at 18:17 +0200, Roberto Ragusa wrote:
On 6/4/22 13:24, Patrick O'Callaghan wrote:
On Fri, 2022-06-03 at 11:53 +0100, Patrick O'Callaghan wrote:
I have a couple of /etc/fstab entries which include the options "noauto,nofail,user,x-systemd.automount", yet when I reboot the system those entries are being mounted, despite the "noauto".
This reminds me of an old heated discussion, the famous "we took the liberty".
https://www.mail-archive.com/devel@lists.fedoraproject.org/msg13652.html
That is from 12 years ago, and the BZ report mentioned on the thread states that the issue has been "fixed upstream":
https://bugzilla.redhat.com/show_bug.cgi?id=626502
Has it somehow become unfixed?
poc