Your message dated Mon, 28 Dec 2020 01:56:47 +0100
with message-id <[email protected]>
and subject line Re: Bug#950771: mount: unexpected behaviour with "-f" option
has caused the Debian Bug report #950771,
regarding mount: unexpected behaviour with "-f" option
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
950771: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950771
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: mount
Version: 2.33.1-0.1
Severity: minor
-- Additional info:
Using mount with '-f' will write to /run/mount/utab.
I think the '-n' option should be included implicitly since it is just a
simulation?
When the root user does a mount with '-f' on a device previously mounted by
another user granted with option 'user' specified in an entry of /etc/fstab,
an umount by the original user will cause a 'umount failed: Operation not
permitted'
-- Comments/feeback/question:
Not sure how and if namespaces/context option can help alter user/group during
a mount by root user.
Is there a way to restict which user/group can mount a device using
user=XXX,group=xxx option in /etc/fstab since that is how /run/mount/utab is
recorded?
-- System Information:
Debian Release: 10.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 4.19.0-6-amd64 (SMP w/8 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8
(charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages mount depends on:
ii libblkid1 2.33.1-0.1
ii libc6 2.28-10
ii libmount1 2.33.1-0.1
ii libselinux1 2.8-1+b1
ii libsmartcols1 2.33.1-0.1
ii util-linux 2.33.1-0.1
mount recommends no packages.
Versions of packages mount suggests:
pn nfs-common <none>
-- no debconf information
--- End Message ---
--- Begin Message ---
* Simon <[email protected]> [201228 00:54]:
> Using mount with '-f' will write to /run/mount/utab.
> I think the '-n' option should be included implicitly since it is just a
> simulation?
No. The man page even says (paraphrased) "-f can be used after -n".
> When the root user does a mount with '-f' on a device previously mounted by
> another user granted with option 'user' specified in an entry of /etc/fstab,
> an umount by the original user will cause a 'umount failed: Operation not
> permitted'
Thats probably expected.
> -- Comments/feeback/question:
> Not sure how and if namespaces/context option can help alter user/group
> during a mount by root user.
> Is there a way to restict which user/group can mount a device using
> user=XXX,group=xxx option in /etc/fstab since that is how /run/mount/utab is
> recorded?
Not using mount or in /etc/fstab. Maybe policykit can provide finer
grained control.
Closing this for now.
Chris
--- End Message ---