Alpine安装smb

SMB是Server Message Block的缩写,也被称为SMB协议或CIFS(Common Internet File System)。

1
apk add samba

添加授权用户smb1

1
adduser  smb1

设置smb用户密码

1
smbpasswd -a smb1
1
vim /etc/samba/smb.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[global]
#to allow symlinks from everywhere
allow insecure wide links = yes
workgroup = WORKGROUP
dos charset = cp866
unix charset = utf-8
force user = smb1

[xxx]
# to follow symlinks
follow symlinks = yes
# to allow symlinks from outside
wide links = yes
browseable = yes
writeable = yes
path = /root/

##config down

开机自启

1
rc-update add samba

启动

1
rc-service samba start
作者

舰长胡椒

发布于

2022-06-29

更新于

2023-10-13

许可协议

评论