I’m configuring a PHP 5.2.17 application, running on a CentOS 6.8 docker container, and it needs to connect to a SMB server. Unfortunately, i’m not able to mount that SMB server.
I can connect to it using smbclient just fine, after putting client lanman auth = yes
and client ntlmv2 auth = no
in /etc/samba/smb.conf
, like this:
smbclient //<ip>//<folder> -U <user>
However, trying to mount it gives different errors:
Command ran:
mount -t cifs //<ip>/<folder> /mnt/<folder> -o username=<user>,password=<password>
Output:
mount error(112): Host is down
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Dmesg output:
[15555.429425] CIFS: Attempting to mount //<ip>/<folder>
[15555.446259] CIFS: VFS: cifs_mount failed w/return code = -112
Specifying the version, gives another error however:
Command ran:
mount -t cifs //<ip>/<folder> /mnt/<folder> -o username=<user>,password=<password>,vers=1.0
Output:
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Dmesg output:
[15886.905425] vers=1.0 (cifs) mount not permitted when legacy dialects disabled
[15886.905425]
[15886.905429] CIFS: VFS: vers=1.0 (cifs) mount not permitted when legacy dialects disabled
I’ve tried connecting to the SMB server on my home lab, and it just works. Also, i’ve tried running the commands with mount.cifs
, with no luck.
Fernando is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.