Ubuntu18.04部署samba服务
程序员文章站
2024-02-19 17:54:46
...
安装服务
sudo apt-get install samba
修改配置文件
sudo vi /etc/samba/smb.conf
- 参数
[share]
comment = share folder
path = /home/test/work
create mask = 0777
directory mask = 0777
valid users = airlook
force user = nobody
force group = nogroup
public = yes
available = yes
writable = yes
browseable = yes
重启samba有关服务
sudo /etc/init.d/smbd restart
sudo /etc/init.d/nmbd restart