[global]
workgroup = workgroup
server string = samba server %v
netbios name = indishell-lab
security = user
map to guest = bad user
name resolve order = bcast host
dns proxy = no
bind interfaces only = yes
[ica]
path = /var/www/html/pub
writable = no
guest ok = yes
guest only = yes
read only = yes
directory mode = 0555
force user = nobody现在,重启samba服务器以使配置文件/etc/samba/smb.conf中的新配置生效。
service smbd restart成功重启samba服务器后,尝试访问smb共享并确保samba服务器不要求提供凭据。
在本例中,samba服务器ip为192.168.0.3,我需要访问windows文件浏览器中的smb共享,如下:\\192.168.0.3\
在 smb 共享中托管 php web shell
太棒了!可以访问smb共享,并显示目录“ica”存在。