I. Samba Services
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)
Samba Service Script
/etc/init.d/smb
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
Create related users and groups
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)
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 "/>
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 "/>
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