Samba Shared server Setup under Linux

Source: Internet
Author: User


I. Samba Services

    1. Main programs for Samba servers

      SMBD: Provides shared access to file print resources in the server (TCP port 139,445)

      NMBD: Provides resolution based on NetBIOS host name (UDP port 137,138)

    2. Samba Service Script

      /etc/init.d/smb

    3. Samba's master configuration file

      /etc/samba/smb.conf


Two. master configuration file Global configuration

Security:user//Security level

(Share: Anonymous Access User: Local user server: Other server domain:windows domain control provided)


Three common shared directory configuration items

Path: The actual path of the shared directory in the server

Guest OK: Allow everyone to access, equals "public"

Writable: Is it possible to write

Read only: Read-only

Valid users: Specify user and group access

Write list: Specifies that the user has readable writable permissions


Four. Permissions

1. Share permissions: Read Only and writeable

2. Permissions for the directory and the file itself


Five. Build local user authentication access

  1. Create related users and groups

  2. Add a system user to a shared user

    Pdbedit-a-u user name (-u can be ignored)

    Pdbedit-l (List all samba users)

    Pdbedit-x-u user name (delete specified samba user)

  3. Modifying the master configuration file

    /etc/samba/smb.conf

    650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/26/wKiom1ajeu_zf-5_AAAUu5sVFyM356.png "title=" 2.png " Width= "507" height= "border=" 2 "hspace=" 2 "vspace=" 2 "style=" WIDTH:507PX;HEIGHT:63PX; "alt=" wkiom1ajeu_zf-5_ Aaauu5svfym356.png "/>

    Add a share

    650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/25/wKioL1ajfdrj2AL0AAA-p4h6kjY200.png "title=" 4.png " Width= "617" height= "border=" 2 "hspace=" 2 "vspace=" 2 "style=" width:617px;height:125px; "alt=" Wkiol1ajfdrj2al0aaa-p4h6kjy200.png "/>

  4. Set silent permissions for files and directories that users upload

    650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/26/wKiom1ajfsfycCP4AABKMwbqueM567.png "title=" 5.png " Width= "554" height= "176" border= "2" hspace= "2" vspace= "2" style= "WIDTH:554PX;HEIGHT:176PX;" alt= " Wkiom1ajfsfyccp4aabkmwbquem567.png "/>

  5. Shared user mappings (aliases)

    Modify the/etc/samba/smbusers file

    650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7A/25/wKioL1ajgCvQLSRhAAAikrLav58848.png "title=" 6.png " Width= "519" height= "border=" 2 "hspace=" 2 "vspace=" 2 "style=" WIDTH:519PX;HEIGHT:88PX; "alt=" Wkiol1ajgcvqlsrhaaaikrlav58848.png "/>

6. You need to add the following in the global configuration of the master configuration file:

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/26/wKiom1ajgJzhrfT7AAAeo90IYTA587.png "title=" 7.png " Width= "636" height= "border=" 2 "hspace=" 2 "vspace=" 2 "style=" WIDTH:636PX;HEIGHT:76PX; "alt=" Wkiom1ajgjzhrft7aaaeo90iyta587.png "/>


This article is from the "Carey" blog, make sure to keep this source http://careygg.blog.51cto.com/11084669/1737950

Samba Shared server Setup under Linux

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.