2、匿名访问
1) 创建/home/share并改权限为777
2) vi /etc/samba/smb.conf
[global]
security = share
然后在文件最后新建一个共享配置
[share]
path = /home/share
writable = yes
guest ok = yes
1) 创建/home/share并改权限为777
2) 创建samba用户,并设置密码:smbpasswd -a samba,也可直接将已有用户设置为samba用户: smbpasswd -a test
3) vi /etc/samba/smb.conf
[global]
security = user
然后在文件最后新建一个共享配置
[share]
path = /home/share
writable = yes
4、在windows中访问,如 \\192.168.1.2