The Samba server-side operation Samba (SMB) is used for Linux and Windows file sharing software. It can also be used for file sharing between Linux (NFS is recommended for file sharing between Linux ). Similar to the FTP service and the file sharing Function in Windows. In Linux, Samba is used to provide the file sharing service to other machines. Other machines can mount the shared file to a local machine for use. Server operations 1. install sudo apt-getinstall samba 2. start service smbstart close service smb stop restart service smb restart 3. check the Starting Status of netstat-tlnp | grep smbd or run this command using sudo. We can see that smd occupies ports 139 and 445. 4. modify configuration file a) back up the configuration file cp/etc/smb. conf/etc/smb. conf. bak B) modify the configuration file sudo vim/etc/smb. conf c) Change the shared directory to the read/write permission chmod777/var/test/d) add the corresponding shared directory [test] Path =/var/test Wirteable = yes Browseable = yes Guest OK = yes 5. verify the configuration information testparm 6. restart the samba client. command Line access method smbclient-L 192.168.0.14 can view the directory information shared by the server 2. after entering the shared directory method smbclient // 192.168.0.14/test, you can use ls getmget put mput and other methods to access files. 3. mount the file to local a) install smbfs: sudoapt-get install smbfs B) mount the test directory to the abc Directory: sudo mount // 192.168.0.25/test/home/vpc/abc