Tag Archives: cifs

Mount error (112): host is down


centos7 minial system when sharing directory with a storage device, use mount-t cifs-o username=”***”,password=”***” \\ \ storage device IP \\ directory name \\ directory name, system error mount error(112): Host is down, after performing yum install cifs-utils and smb-related dependencies, mount -t cifs-o vers=1.0,username=”***”,password=”***” \\ \ storage device IP \ directory name \\ directory name, load successfully, this situation mainly involves two problems:
1, cifs and SMB. SMB (Server Message Block) is also known as CIFS(Common Internet File System), an application layer network transport protocol (developed by Microsoft and Intel in 1987). The main function of SMB is to enable machines on the network to share computer files, printers, serial ports, communications and other resources. It also provides certified interprocess communication skills. It is mainly used on Windows machines. CIFS is a protocol developed by Microsoft based on SMB and extended to the Internet. It has nothing to do with the specific OS; CIFS is available after Samba is installed on Unix. It enables a program to access files on a remote Internet computer and request the services of that computer. CIFS USES client/server mode. The client requests the server application on the remote server to serve it. The server gets the request and returns the response.
CIFS is a public or open version of the SMB protocol and is used by Microsoft. The SMB protocol is now a LAN protocol for accessing and printing server files. Like the SMB protocol, CIFS runs at a high level, rather than at the bottom, as TCP/IP does. CIFS can be seen as an implementation of application protocols such as file transfer protocol and hypertext transfer Protocol. Ii. The first packet sent by cifs protocol contains version information. Mount vfstype
mount vfstype
DOS fat16 file system: msdos
Windows 9x fat32 file system: vfat
Windows NT NTFS
mount Windows file network sharing: SMBFS
UNIX(LINUX) file network sharing: NFS

cifs mount error(13): Permission denied

In operation and maintenance, I created a Shared disk on Windows (192.168.2.212), set the share permissions to be readable and writable for the local account test, then created mount point /share on Linux side, then mount -t cifs //192.168.2.212/test/share-o username=test,password=Pass1234, but prompted the following information:
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
According to the description of security mode in Man mount. Cifs, kernel 3.8 USES NTLMSSP by default, and the rest USES NTLM. Here I query kernel 3.10.0-327.el7.x86_64 (uname-a can be viewed), and NTLM is selected. The final statement is mount -t cifs //10.15.2.212/test/share-o username=test,password=Pass1234, SEC = NTLM, executed successfully.
SEC =
Security mode. Allowed values are:
· None-attempt to connection as a null user (no name)
· KRB5-use Kerberos Version 5 Authentication
· Krb5i-use Kerberos authentication and Establish enable Packet Signing
· NTLM-use NTLM password Hashing
· NTLMI-use NTLM password hashing and force packet Signing
· NTLMv2-use NTLMv2 password Hashing
· NTLMV2I-use NTLMv2 password hashing and force packet Signing
· NtlMSSP-use NTLMv2 password hashing Encapsulated in Raw NTLMSSP message
· NtlMSspi – Use NTLMv2 password hashing. Additionally, encapsulated in Raw NTLMSSP message, and Force packet Signing
The default in mainline kernel versions prior to V3.8 was SEC = ntlm.in v3.8, The default was changed to SEC = NTLMSSP.
If the server requires Signing during protocol negotiation, Then it may be enabled automatically. The Packet signing may also be enabled
automatically if it ‘s enabled in/proc/fs/cifs/SecurityFlags.