RedHat6Samba shared document

Source: Internet
Author: User
[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!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.