Ubuntu 18.04 添加 samba
1、安装samba工具:
sudo apt-get install samba samba-common
2、添加 samba 用户
seven@seven:~$ sudo smbpasswd -a seven New SMB password: Retype new SMB password: Added user seven.
3、添加配置文件:
seven@seven:~$ vi /etc/samba/smb.conf 添加如下: [media] comment = Share for media path = /media browseable = yes public = no writable = yes printable = no create mask = 0765 valid users = seven
4、重启samba
seven@seven:~$ sudo /etc/init.d/smbd restart [ ok ] Restarting smbd (via systemctl): smbd.service.
大功告成。