I. installation of Samba: # sudoapt-getinsallsamba # sudoapt-getinstallsmbfs II. create a shared directory: # mkdir/home/willis/share # soduchmod777/home/willis/share 3. create a Samba configuration file: 01. save...
1. installation of Samba:
# Sudo apt-get insall samba
# Sudo apt-get install smbfs
2. create a shared directory:
# Mkdir/home/willis/share
# Sodu chmod 777/home/willis/share
3. create a Samba configuration file:
01. Save the existing configuration file
# Sudo mv/etc/samba/smb. conf/etc/samba/smb. conf. bak
02. create a new Samba configuration file
# Sodu gedit/etc/samba/smb. conf
############## Smb. conf #######################
[Global]
; Create a working group
Workgroup = MYGROUP
In security mode, we set the minimum security level
Security = share
; Whether to allow access by the guest user
Guest OK = yes
; Shared folder path
Path =/home/willis/share
; Read permission
Browseable = yes
; Write permission
Writeable = yes
IV. test file configuration results
# Testparm
5. restart the Samba service
#/Etc/init. d/samba restart
6. log out and log on again or restart the machine.
7. test login
# Smbclient-L // localhost/share
Test from a remote host:
# Smbclient // /Share
Note: If the SAMBA server is set in the LINUX system of the virtual machine, you must set the Nic connecting the external system to the virtual machine system to be consistent with the Gateway of the NIC in the virtual machine before access.