Author :! Angel www.hackbase.com
I have a lot of work reasons when configuring the sambs server, so I will write it down and discuss it with you. this document describes how to configure the samba server in red hat linux 9. I hope it will be helpful for me. this article has no technical content. I am not familiar with linux. Please advise me.
Smb in the configuration file/etc/samba/of samba server. enter gedit/etc/samba/smb In the conf terminal. conf can also be edited using vi. because the file is too long, I deleted what I think is useless, mainly for some notes. the following explains the meaning of the main fields. because my file has been configured, your machine may be different from mine.
====================================== Global Settings ====================== ======================================
[Global] file: // set the overall samba service environment
Workgroup = hackase file: // set the workgroup name
Server string = angel server file: // server Name Description
; Hosts allow = 192.168.1. 192.168.2. 127. file: // restrict the IP address ranges that can access this service. The default value is all.
If you want to set the settings, remove the preceding ";"
Printcap name =/etc/printcap file: // printer configuration file
Load printers = yes file: // whether to share the printer
# Bsd, sysv, plp, lprng, aix, hpux, qnx, cups
Printing = cups file: // printer type. The standard printer types include the above.
; Guest account = pcguest file: // pcguest is the user name. You can remove the ";" to allow the user
The pcguest identity is used for anonymous logon, but the/etc/passwd must contain this person.
Log file =/var/log/samba/% m. log file: // create different log files for users logging on to the server.
Max log size = 0 file: // the size of the log file. "0" indicates no limit.
File: // The smb. conf file sets the server security level.
Security = SHARE file: // There are four security levels: share, user, server, and domain.
; Password server = <NT-Server-Name> password verification server.
; Password level = 8 file: // password level
; Username level = 8
Encrypt passwords = yes file: // user password encryption, of course, can not be encrypted
Smb passwd file =/etc/samba/smbpasswd file: // set the password server to samba server.
You need this stuff to specify the authentication file. This is the file
If the samba server is the specified win
Server is not required
; Ssl CA certFile =/usr/share/ssl/certs/ca-bundle.crt
Unix password sync = Yes
Passwd program =/usr/bin/passwd % u
Passwd chat = * New * password * % n * Retype * new * password * % n * passwd: * all * authentication * tokens * updated * successfully *
Pam password change = yes
; Username map =/etc/samba/smbusers file: // if every windows user has an account on the samba server
No
; Include =/etc/samba/smb. conf. % m
Obey pam restrictions = yes
; Interfaces = 192.168.12.2/24 192.168.13.2/24 if multiple network segments need to be listed here
; Remote announce = 192.168.1.255 192.168.2.44
; Local master = no
; OS level = 33
; Domain master = yes
; Preferred master = yes
; Domain logons = yes
; Logon script = % m. bat
; Logon script = % U. bat
; Logon path =\% LProfiles \ % U
; Wins support = yes file: // wins server support
; Wins server = w. x. y. z
; Wins proxy = yes file: // wins proxy settings
Dns proxy = no file: // dns proxy settings
; Preserve case = no
; Short preserve case = no
; Default case = lower
; Case sensitive = no
#============================ Share Definitions ========== ==================================
[Homes] file: // set the user to access his/her own directory
Comment = Home Directories file: // description (same as below)
Browseable = no // set the directory to be browsed by others
Writeable = yes // write permission of the user
Valid users = % S
Create mode = 0664
Directory mode = 0775
; [Netlogon] file: // set the user logon directory for this domain
; Comment = Network Logon Service
; Path =/usr/local/samba/lib/netlogon
; Guest OK = yes
; Writable = no
; Share modes = no
; [Profiles]
; Path =/usr/local/samba/profiles
; Browseable = no
; Guest OK = yes
[Printers] file: // printer settings
Comment = All Printers
Path =/var/spool/samba
Browseable = no
Printable = yes
; [Tmp] file: // user shared resource settings
; Comment = Temporary file space
; Path =/tmp file: // you can customize the Directory and remove the ";" from the front.
; Read only = no file: // whether it is read-only or writable
; Public = yes
; [Public] file: // user shared resource settings
; Comment = Public Stuff
; Path =/home/samba
; Public = yes
; Writable = yes
; Printable = no
; Write list = @ staff
; [Fredsprn]
; Comment = Freds Printer
; Valid users = fred
; Path =/home/fred
; Printer = freds_printer
; Public = no
; Writable = no
; Printable = yes
; [Fredsdir]
; Comment