Debian10 Samba open folders sharing service

Following the operation qBittorrent on a Samba share increase its download directory

installation

apt install samba

Configuration

smbpasswd -a pray #然后输入密码
pdbedit -w -L #列出现有的Samba用户列表
nano /etc/samba/smb.conf
chmod 777 /disk1 #给共享目录权限,其实给个600权限更安全
[disk1]
path = /disk1
writable = yes
guest ok = yes
write list = pray
validusers = pray
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936

Setting Service

Restart the service service smbd restart
set a power servicesystemctl enable nmbd.service

And Sharing Option Description
[share name]: see shared shared directory name
comment = shared described. 
Path = path shared directory (can use% u, instead of the path macro% m such as: / home / share /% U) 
browseable = yes / NO specify the share is visible in the "Network neighborhood".
writable = yes / no specified whether the shared path writable.
read only = yes / no is set to read-only shared directories (note settings do not conflict with writable) 
the Available = yes / NO to specify whether the shared resource is available.
admin users = bobyuan, jane specify the share administrator, the user authentication method is "security = share", this is invalid. 
valid users = bobyuan, jane allowed to access the shared user or group - "@ + group name" 
invalid = prohibit the Users access the shared user and group (ibid) 
the Write List = allows users to write to the shared
public = yes / no whether to allow guest access to shared accounts. 
guest ok = yes / no meaning with "public".
create mask = 0700 to specify user permissions Samba by default create a file in the shared directory. 0600 represents the file permissions to create ------- rw
Directory mask = 0700 to specify user permissions by default Samba to create a directory in the shared directory. 0600 represents the permissions to create a directory for the rwx ------

Guess you like

Origin www.cnblogs.com/praybb/p/12166337.html