[email protected]:~# smbpasswd -a root
New SMB password:
Retype new SMB password:
[email protected]:~# vi /etc/samba/smb.conf
在/etc/samba/smb.conf末尾追加
[share]
path=/root
writable=yes
public=yes
valid users=root
[email protected]:~# service smbd start
在windows访问\\ip,按照提示输入用户名密码
时间: 2024-10-13 15:04:19