Home  >  Article  >  Operation and Maintenance  >  what is linux cifs

what is linux cifs

藏色散人
藏色散人Original
2023-04-14 11:01:062251browse

linux cifs is a general network file system that allows a host to access files shared on a remote host; CIFS uses the C/S mode, that is, the client sends a request to the server, and the server Accept and respond; CIFS is a public open protocol for SMB, and SMB is now a protocol used on local area networks for server file access and printing.

what is linux cifs

#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.

What are linux cifs?

CIFS (Common Internet File System) file system, also called a common network file system; it allows a host to access files shared on a remote host. The C/S model used by CIFS (the client sends a request to the server, and the server accepts and responds). CIFS is a public and open SMB (server messages block, service information block) protocol. SMB is now a protocol used on local area networks for server file access and printing.

CIFS and NFS are both methods of sharing files on the network (used to separate the host and storage. When the host goes down, the shared storage files can be accessed through the network), and this article mainly discusses CIFS Services, and NFS services will be explained in detail in the next few articles.

CIFS is SMB, but CIFS is a protocol launched by Microsoft, and SMB is a protocol launched by Sun. What we install on Linux is Samba, a free software of SMB.

When using Samba, there are the following points to note:

Samba can either log in with a system account or log in anonymously. However, to use anonymous login, you need a Samba configuration file on the server side. Modify the configuration in;

The files shared by the account are in the account's home directory;

If you want to upload files, you can only upload files in the current directory.

Related expansion:

The difference between the three storage methods of server storage: iscsi, cifs, and NFS

1. Storage Different protocols

1. iscsi: It is a storage technology based on the Internet and SCSI-3 protocol. It was proposed by the IETF and became an official standard on February 11, 2003.

2. cifs: is a newly proposed protocol that allows programs to access files on remote Internet computers and require this computer to provide services.

3. nfs: Network file system. Network file system is one of the file systems supported by FreeBSD.

2. Different storage principles

1. iscsi: uses TCP/IP ports 860 and 3260 as communication channels. By using the iSCSI protocol to exchange SCSI commands between two servers, the server can simulate the SAN as a local storage device through a high-speed LAN hub.

2. cifs: is a public or open SMB protocol version and is used by Microsoft. SMB protocol is a protocol used for server file access and printing on a local area network.

3. nfs: By using NFS, users and programs can access files on the remote system just like local files.

3. Different storage characteristics

1. iscsi: Let two hosts negotiate with each other through the IP network and then exchange SCSI commands. In this way, iSCSI emulates a commonly used high-performance local storage bus over a wide area network, thereby creating a storage area network (SAN).

2. cifs: CIFS runs at the high level, unlike the TCP/IP protocol that runs at the bottom level. CIFS can be seen as an implementation of application protocols such as File Transfer Protocol and Hypertext Transfer Protocol.

4. nfs: It may be convenient to configure a central NFS server to place the home directories of all users. These directories can be exported to the network so that users always have the same home directory no matter which workstation they log on to.

4. Compare Samba and NFS from a practical perspective

1. Practical differences

(1) Samba can solve the problem between win and linux, linux and linux Sharing, but the SMB protocol is MS, and the advanced features of SMB are closely related to the features of Windows.

(2) Compared with samba, NFS is more concise, convenient, more native, and has better compatibility.

2. Running on different operating systems

(1) samba is mainly used to share resources between windows and unix. Resources include files, printers, etc.

(2) NFS is mainly used on UNIX/LINUX rather than windows.

Recommended learning: "linux video tutorial"

The above is the detailed content of what is linux cifs. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn