root@kali:~# smbpasswd -a root
New SMB password:
Retype new SMB password:
root@kali:~# vi /etc/samba/smb.conf
在/etc/samba/smb.conf末尾追加
[share]
path=/
public=no
vaild users=root
write list=root
create mask=0644
writable
root@kali:~# service smbd start
在windows访问\ip,按照提示输入用户名密码