Linux-Samba or NFS file sharing

2020.3.15

Learn to use Linux Samba and NFS to enable file sharing

 

Samba

Samba-- cross-platform sharing service based on the SMB protocol, can be shared between Linux and Linux, Windows and Linux

Yum to install from the depot, in the configuration file can be found up to 320 lines.

Use grep -v "#" | grep -v ";" | grep -v "^ $" to multi-screen comments, and blank lines, requiring only 1-7 lines.

pdbedit for managing account information database SMB service program, the first time the need to write -a parameter, there is no need to use later.

Attention to the context and domain restriction security SELinux restrictions to be modified.

 

NFS (Network File System)

NFS file services can be shared on a remote Linux system resources to mount a directory on the local host, so that the local host-based FCP / IP protocol, like using the resources on the local host as read and write shared folder on a remote Linux system.

In RHEL 7 system has been installed by default NFS service, vim / etc / exports (configuration files)

Note that there is no space between the NFS client address and authority, / nfsfile 192.168.10. * (Rw, sync, root_squash)

 

autofs the service automatically mount

Since the mount too much information can cause the load is too high, and each time manually mount and too cumbersome, autofs service can be implemented in automatic mounting.

Note that the main configuration file is not mounted, but as usage index directory, the optical disk device mounted on a subdirectory.

 

Study notes:

 

Guess you like

Origin www.cnblogs.com/mrpanyue/p/12501150.html