After installing the Samba server, it is easy to implement Windows and Linux for communication. Installation steps: 1, install the Samba service under the Ubuntu system:
nii@ww:~$ sudo apt-get install Samba
2, off the Ubuntu firewall
nii@ww:~$ sudo service UFW stop
3. Configure smb.conf Files
Step 1 Advanced into the directory of the configuration file, and then switch to Administrator rights
nii@ww:~$ cd/etc/samba/
nii@ww:/etc/samba$ su
Step 2 First back up the smb.conf, in case of improper operation, you can also restore the file back
root@ww:/etc/samba# CP smb.conf Smb.conf.bak
Step 3, with Vim, opens the smb.conf and changes 193 lines to 200 lines as shown in the following illustration:
4, add samba add a root user
root@ww:/etc/samba# smbpasswd-a root
new SMB password:
Retype new SMB password:
Enter the password, I am here to enter the root user, you can enter a different user name. 5. Restart Sam Service
root@ww:/etc/samba# Service SMBD Restart
6, the last window under Windows to run the input \ Plus IP is good, for example, my is:
\\192.168.142.191\root
In the pop-up window, enter the user name and password just added, you can access the Linux file directory. As shown in figure: