Setting up a Samba server

Source: Internet
Author: User

Setting up a Samba server

Samba is a free software that implements the SMB protocol on Linux and UNIX systems. Consists of the server and the client program.

1. Install the Samba server:

#yum Install Samba-y

2. go to config file directory:

#cd/etc/samba/

3. Edit the Smb.cof file

#vim SMB.COF

4. You can filter out some comments by grep by: # spaces: Start with

#grep–v"#"SMB.COF |grep–v"∧$"|grep–v"∧;"

5. Restart the service

#/etc/init.d/smb restart

6. Native Firewall shutdown

#/etc/init.d/iptables stop

So we successfully built the Samba server and entered the Start menu to enter the server IP.

Note The configuration file is detailed:

[global]                                                      

        workgroup = mygroup         // The work required to set up samba  server is composed of

        Server string = Samba server Version%v    //Samba The version number

Security = Share   // Access does not require a user name and password

Passdb backend = Tdbsam

Load printers = yes

Cups options = raw

 [data]                                                  // shared directory

     comment=temporary file space             // Description of the share, any word character

    path=/data                             Span style= "line-height:150%;font-family: ' Microsoft Jas Black ', ' sans-serif '; color: #92D050; background: #FFFFFF;" >    // path of the shared directory

     Read only=no                   // Is it read only?    no readable writable yes: Read-only

Public=yes  // shared


This article is from the "Success" blog, make sure to keep this source http://maxiaotian.blog.51cto.com/10824115/1715981

Setting up a Samba server

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.