Mainly briefly record the construction process of the samba server, in order to improve the speed of subsequent construction and solve the emergence of similar problems, I hope it can be helpful.
Environment Ubuntu 14
Install samba server software
sudo apt-get install sambal samba-common
Create a shared folder
sudo mkdir /home/myshare
Create a shared folder
sudo mkdir /home/myshare
Permission to share directories
sudo chmod 777 /home/myshare
samba server configuration file
vim /etc/samba/smb.conf
添加对应的用户用来访问。
安装好Samba服务器之后,win10访问会拒绝访问。
将 ==========Share Definition=======下面的所有代码注释,并添加设置
[myshare]
comment = samba home directory
path = /home/myshare
public = yes
browseable = yes
public = yes
read only = no
writable = yes
#valid users = user
create mask = 0777
directory mask = 0777
#force user = nobody
#force group =nogroup
available = yes
security = share
不设置登录限制。
Configure firewall
sudo ufw disable
Restart the samba server /etc/init.d/sambd restart
or
sudo service smbd restart
talloc
After the installation is complete, I always find that I am disconnected without permission or transferring files and report a network error. Directly using the file management period to right-click to set up sharing also has this problem, use this method to solve ok.
sudo apt-get install libtalloc2