[Bug 1836461] [NEW] DirectoryMode is not considered in systemd automount
matador
m.tauchnitz at gmx.de
Sat Jul 13 21:13:09 UTC 2019
Public bug reported:
With the following systemd mount unit file
[Unit]
Description=Additional drive
[Mount]
What=/dev/disk/by-label/some-label
Where=/media/disk-with-some-label
DirectoryMode=0777
[Install]
WantedBy=multi-user.target
and the following automount unit file
[Unit]
Description=Automount Additional Drive
[Automount]
Where=/media/disk-with-some-label
DirectoryMode=0777
[Install]
WantedBy=multi-user.target
If I do
systemctl start <unit-file-name-of-automount-unitfile>
and check the permissions on /media/disk-with-some-label it is 0755 instead of 0777. I checked that
/media/disk-with-some-label did not exist before starting the service.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu10.24
ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18
Uname: Linux 4.15.0-43-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Jul 13 22:58:08 2019
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b5ee Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: HP HP ZBook 15 G5
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-43-generic root=/dev/mapper/ubuntu--notebook--vg-root ro nomodeset nosplash
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/07/2018
dmi.bios.vendor: HP
dmi.bios.version: Q70 Ver. 01.01.05
dmi.board.name: 842A
dmi.board.vendor: HP
dmi.board.version: KBC Version 15.2B.00
dmi.chassis.asset.tag: 5CD8394RP8
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrQ70Ver.01.01.05:bd08/07/2018:svnHP:pnHPZBook15G5:pvr:rvnHP:rn842A:rvrKBCVersion15.2B.00:cvnHP:ct10:cvr:
dmi.product.family: 103C_5336AN HP ZBook 15
dmi.product.name: HP ZBook 15 G5
dmi.sys.vendor: HP
** Affects: systemd (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug bionic
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1836461
Title:
DirectoryMode is not considered in systemd automount
Status in systemd package in Ubuntu:
New
Bug description:
With the following systemd mount unit file
[Unit]
Description=Additional drive
[Mount]
What=/dev/disk/by-label/some-label
Where=/media/disk-with-some-label
DirectoryMode=0777
[Install]
WantedBy=multi-user.target
and the following automount unit file
[Unit]
Description=Automount Additional Drive
[Automount]
Where=/media/disk-with-some-label
DirectoryMode=0777
[Install]
WantedBy=multi-user.target
If I do
systemctl start <unit-file-name-of-automount-unitfile>
and check the permissions on /media/disk-with-some-label it is 0755 instead of 0777. I checked that
/media/disk-with-some-label did not exist before starting the service.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: systemd 237-3ubuntu10.24
ProcVersionSignature: Ubuntu 4.15.0-43.46-generic 4.15.18
Uname: Linux 4.15.0-43-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sat Jul 13 22:58:08 2019
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04f2:b5ee Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 058f:6387 Alcor Micro Corp. Flash Drive
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: HP HP ZBook 15 G5
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-43-generic root=/dev/mapper/ubuntu--notebook--vg-root ro nomodeset nosplash
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 08/07/2018
dmi.bios.vendor: HP
dmi.bios.version: Q70 Ver. 01.01.05
dmi.board.name: 842A
dmi.board.vendor: HP
dmi.board.version: KBC Version 15.2B.00
dmi.chassis.asset.tag: 5CD8394RP8
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrQ70Ver.01.01.05:bd08/07/2018:svnHP:pnHPZBook15G5:pvr:rvnHP:rn842A:rvrKBCVersion15.2B.00:cvnHP:ct10:cvr:
dmi.product.family: 103C_5336AN HP ZBook 15
dmi.product.name: HP ZBook 15 G5
dmi.sys.vendor: HP
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1836461/+subscriptions
More information about the foundations-bugs
mailing list