[Root @ wwwceshi] # yuminstallsmb *-y installation service [root @ wwwceshi] # cat/etc/samba/smb. conf view configuration file [ceshi] & n
[Root @ www ceshi] # yum install smb *-y installation service
[Root @ www ceshi] # view the configuration file cat/etc/samba/smb. conf
[Ceshi] sharing name
Path =/ceshi file path
Comment = ceshi description
Browseable = yes is browsed by the client
Write list = jack, @ ceshizu users and groups that can be read and written
Read list = tom, @ zhidu defines read-only users and groups
[Root @ www ceshi] # testparm check whether the configuration file is normal
Loaded services file OK. If this line is displayed, the file is correctly configured.
[Root @ www ceshi] # Set the user password for smbpasswd-a tom
[Root @ www ceshi] # service smb restart service
[Root @ www 123] # smbclient-L // 192.168.0.12-U jack views server sharing on the RedHat Client
[Root @ www 123] # smbclient // 192.168.0.12/ceshi-U jack shares access with redhat
[Root @ www ceshi] # mount-t cifs-o username = jack, password = 123456 // 192.168.0.12/ceshi/aaa mount the server on the redhat client and share it locally
The test is readable and writable!
Windows XP can be accessed directly at run!