Package: mount
Version: 2.25.2-2
I am using mount with pam-mount and davfs2 to mount Owncloud WebDAV
shares on user accounts. The actual mounting is done by pushing a
custom /etc/security/pam_mount.conf.xml file to the clients where the
right davfs2 configuration is written.
It looks like this: <volume user="communications" fstype="davfs"
path="SERVER" mountpoint="~/Owncloud"
options="uid=communications,file_mode=0777,dir_mode=0777" />
To be clear, the order in which mount, libpam-mount and davfs2 are
called is: pam-mount -> mount -> davfs2
Anyway, since I upgraded from 2.20.1-5.11 to 2.25.2-2, I get this
error message when a user logs in (system tries to mount the right
share automatically):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:72): Messages from
underlying mount program:
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount: invalid option -- 'p'
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): Usage:
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount [-lhV]
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount -a [options]
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount [options]
[--source] <source> | [--target] <directory>
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount [options]
<source> <directory>
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): mount <operation>
<mountpoint> [<target>]
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): Options:
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -a, --all
mount all filesystems mentioned in fstab
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -c,
--no-canonicalize don't canonicalize paths
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -f, --fake
dry run; skip the mount(2) syscall
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -F, --fork
fork off for each device (use with -a)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -T, --fstab <path>
alternative file to /etc/fstab
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -h, --help
display this help text and exit
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -i, --internal-only
don't call the mount.<type> helpers
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -l, --show-labels
lists all mounts with LABELs
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -n, --no-mtab
don't write to /etc/mtab
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -o, --options
<list> comma-separated list of mount options
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -O, --test-opts
<list> limit the set of filesystems (use with -a)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -r, --read-only
mount the filesystem read-only (same as -o ro)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -t, --types <list>
limit the set of filesystem types
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --source <src>
explicitly specifies source (path, label, uuid)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --target
<target> explicitly specifies mountpoint
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -v, --verbose
say what is being done
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -V, --version
display version information and exit
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -w, --rw,
--read-write mount the filesystem read-write (default)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -h, --help
display this help and exit
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -V, --version
output version information and exit
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): Source:
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -L, --label <label>
synonym for LABEL=<label>
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -U, --uuid <uuid>
synonym for UUID=<uuid>
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): LABEL=<label>
specifies device by filesystem label
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): UUID=<uuid>
specifies device by filesystem UUID
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): PARTLABEL=<label>
specifies device by partition label
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): PARTUUID=<uuid>
specifies device by partition UUID
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): <device>
specifies device by path
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): <directory>
mountpoint for bind mounts (see --bind/rbind)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): <file>
regular file for loopdev setup
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): Operations:
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -B, --bind
mount a subtree somewhere else (same as -o bind)
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -M, --move
move a subtree to some other place
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): -R, --rbind
mount a subtree and all submounts somewhere else
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-shared
mark a subtree as shared
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-slave
mark a subtree as slave
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-private
mark a subtree as private
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-unbindable
mark a subtree as unbindable
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-rshared
recursively mark a whole subtree as shared
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-rslave
recursively mark a whole subtree as slave
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-rprivate
recursively mark a whole subtree as private
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): --make-runbindable
recursively mark a whole subtree as unbindable
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76):
Nov 7 12:43:49 age3 systemd[2452]: (mount.c:76): For more details see mount(8).
Nov 7 12:43:49 age3 systemd[2452]: (pam_mount.c:522): mount of
https://cloud.agebdeb.org/remote.php/webdav/ failed
Nov 7 12:43:49 age3 systemd[2452]: (pam_mount.c:173):
conv->conv(...): Conversation error
Nov 7 12:43:49 age3 systemd[2452]: (pam_mount.c:477): warning: could
not obtain password interactively either
The only package of the 3 that has been upgraded is mount. I thus
think it might be a problem with the lastest update.
I was able to replicate the problem twice by upgrading to the newest
version of mount.
I'm still pretty new with bug reports. If you need something else please ask.
--
Louis-Philippe Véronneau