[disco] [5.0.0-7.8] can't mount guest cifs share
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
High
|
Tyler Hicks |
Bug Description
Hi,
with a simple smb.conf setup like this:
[pub]
path = /pub
guest ok = yes
The following mount command fails when the running kernel is 5.0.0-7:
root@ubuntu:~# dmesg -C
root@ubuntu:~# mount //localhost/pub /mnt -o guest
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@ubuntu:~# dmesg
[ 178.469307] CIFS: Attempting to mount //localhost/pub
[ 178.469343] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
[ 178.481741] CIFS VFS: failed to connect to IPC (rc=-13)
[ 178.485272] CIFS VFS: cifs_mount failed w/return code = -13
samba server logs, in debug 5, show:
[2019/03/20 17:25:19.365445, 0] ../../libcli/
Bad SMB2 signature for message
[2019/03/20 17:25:19.365524, 0] ../../lib/
[0000] A6 62 5F 50 9C D7 31 42 14 34 52 9F AA 49 C8 31 .b_P..1B .4R..I.1
[2019/03/20 17:25:19.365562, 0] ../../lib/
[0000] 31 37 12 A2 D5 D4 59 99 0B 63 C5 21 EB 86 70 74 17....Y. .c.!..pt
[2019/03/20 17:25:19.369055, 0] ../../libcli/
Bad SMB2 signature for message
[2019/03/20 17:25:19.369092, 0] ../../lib/
[0000] 23 2C 4F 10 0E 4E 46 2E 8A 5B E3 70 0F B3 D3 FB #,O..NF. .[.p....
[2019/03/20 17:25:19.369120, 0] ../../lib/
[0000] 50 F7 C6 8A 6E BC B2 B7 1C 2F 43 30 90 6A 25 CA P...n... ./C0.j%.
With kernel 4.19.0-12-generic, the exact same system, the command works:
root@ubuntu:~# dmesg -C
root@ubuntu:~# mount //localhost/pub /mnt -o guest
root@ubuntu:~# dmesg
[ 277.745885] FS-Cache: Loaded
[ 277.768408] FS-Cache: Netfs 'cifs' registered for caching
[ 277.768495] Key type cifs.spnego registered
[ 277.768498] Key type cifs.idmap registered
[ 277.768707] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount.
root@ubuntu:~# mount -t cifs
//localhost/pub on /mnt type cifs (rw,relatime,
root@ubuntu:~# uname -r
4.19.0-12-generic
Just looking at the list of patches queued up for the next upstream kernel release, at https:/
https:/
I can easily test a new kernel for you.
---
ProblemType: Bug
AlsaDevices:
total 0
crw-rw---- 1 root audio 116, 1 Mar 20 18:04 seq
crw-rw---- 1 root audio 116, 33 Mar 20 18:04 timer
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.10-0ubuntu23
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: N/A
DistroRelease: Ubuntu 19.04
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb: Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
Package: linux (not installed)
PciMultimedia:
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
ProcFB:
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware N/A
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: disco uec-images
Uname: Linux 5.0.0-7-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dialout dip floppy netdev plugdev sudo video
_MarkForUpload: False
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: 1.10.2-1ubuntu1
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.
dmi.modalias: dmi:bvnSeaBIOS:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.
dmi.sys.vendor: QEMU
CVE References
Changed in linux (Ubuntu): | |
assignee: | nobody → Tyler Hicks (tyhicks) |
importance: | Undecided → High |
status: | Confirmed → In Progress |
Changed in linux (Ubuntu): | |
status: | In Progress → Fix Committed |
tags: | added: cscc |
If I force the SMB1 protocol (vers=1.0), then the mount works:
root@ubuntu:~# mount //localhost/pub /mnt -o guest,vers=1.0 vers=1. 0,sec=none, cache=strict, uid=0,noforceui d,gid=0, noforcegid, addr=127. 0.0.1,soft, unix,posixpaths ,serverino, mapposix, acl,rsize= 1048576, wsize=65536, echo_interval= 60,actimeo= 1)
root@ubuntu:~# mount -t cifs
//localhost/pub on /mnt type cifs (rw,relatime,
root@ubuntu:~# uname -r
5.0.0-7-generic
root@ubuntu:~#