samba最快速匿名共享

2025-06-24 03:13:28

1、需要先关闭SELinux和防火墙。

2、关闭SELinux:# vim /etc/sysconfig/selinuxSELINUX=disabled关闭防火墙:# systemctl stop firewalld# systemctl disable firewalld

3、安装samba# yum install samba

4、配置文件/etc/samba/smb.conf设置成匿名访问,其中samba3和samba4版本设置有点不一样。samba3版本把[global]段中的security = user改成security = sharesamba4版本在[global]中添加一句:map to guest = bad user

samba最快速匿名共享

6、配置完成后,重启samba服务# systemctl restart smb

7、远程访问共享的目录Linux客户端:使用smbclient来操作远程共享的文件查看文件# smbclient -c "ls" //192.168.3.21/share_name创建目录# smbclient -c "mkdir test" //192.168.3.21/share_name也可以使用mount把共享目录挂载到某个目录上# mount -t cifs -o username=root //192.168.3.21/share_name /mnt

samba最快速匿名共享

8、Windows远程访问:随便打开文件浏览器,在地址栏上填上samba服务的IP地址

samba最快速匿名共享
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢