Ubuntu18.04 虚拟机 samba
Winscp不香吗???Winscp不香吗???Winscp不香吗???
各种权限问题==
安装虚拟机5分钟
安装ubutntu18 10分钟
搞了我一个小时。。。算了,不折腾了。。。
创建需要共享的文件夹:
sudo mkdir /home/ufo/samba/share
sudo chmod 777 /home/ufo/samba/share
安装:
sudo apt-get dist-upgrade
sudo apt-get install samba samba-common
创建samba用户,并设置密码
sudo smbpasswd -a ufo
改配置:
sudo vim /etc/samba/smb.conf
[share]
comment = share folder
browseable = yes
path = /home/ufo/samba/test
create mask = 0700
directory mask = 0700
valid users = ufo
force user = ufo
force group = ufo
public = yes
available = yes
writable = yes
重启:
sudo service smbd restart
查看用户:
pdbedit -L
删除用户:
smbpasswd -x test
审查参数配置:
testparm