redhat 6 samba 共享文档

[root@www ceshi]# yum install smb*  -y  安装服务

[root@www ceshi]# cat  /etc/samba/smb.conf   查看配置文件

       [ceshi]                        共享名
   path = /ceshi                  文件路径
  comment = ceshi           描述
  browseable = yes           是否可被客户端浏览
  write list = jack,@ceshizu  可读写的用户和组
   read list = tom,@zhidu      定义只读的用户和组
[root@www ceshi]# testparm  查看配置文件是否正常

Loaded services file OK.  看到有这一行提示表示文件配置正确

[root@www ceshi]# smbpasswd  -a tom  设置用户密码

[root@www ceshi]# service smb restart  重启服务

[root@www 123]# smbclient  -L //192.168.0.12 -U jack在redhat客户端查看服务器共享

[root@www 123]# smbclient //192.168.0.12/ceshi -U jack 用redhat访问共享

[root@www ceshi]#mount -t cifs  -o username=jack,password=123456 //192.168.0.12/ceshi  /aaa    在redhat客户端上挂载服务器共享到本地

测试是可读可写的!

windows XP可以直接在运行访问即可!

 

你可能感兴趣的:(redhat,samba,共享,6)