Samba is mainly used in the LAN environment, linux windows system and file sharing system, which set up the following steps:
- sudo su
- Create a shared directory mkdir / home / semie / share
- Change the directory permissions chmod 777 / home / semie / share
- install Samba相关 sudo apt-get install samba samba-common
- add a user and set a password sudo smbpasswd -a semie semie as my user name
- edit the samba conf sudo nano /etc/samba/smb.conf finally add in the configuration file as follows
[share] comment = share folder browseable = yes path = /home/semie/share create mask = 0700 directory mask = 0700 valid users = semie force user = semie force group = semie public = yes available = yes writable = yes
- restart service sudo service smbd restart
- windows next visit \\ 192.168.0.105