天天看點

smb安裝配置

[global]

	workgroup = WORKGROUP
	server string = Samba Server Version %v

	netbios name = FTPServer

	interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
	hosts allow = 10.10.3. 10.10.4. 10.10.5. 10.10.6.


	# logs split per machine
	log file = /var/log/samba/log.%m
	# max 50KB per log file, then rotate
	max log size = 50

;	security = user
	security = share
	passdb backend = tdbsam
	guest account = root


;	security = domain
;	passdb backend = tdbsam
;	realm = MY_REALM
;	password server = <NT-Server-Name>
;	security = user
;	passdb backend = tdbsam

;	domain master = yes
;	domain logons = yes

	# the login script name depends on the machine name
;	logon script = %m.bat
	# the login script name depends on the unix user used
;	logon script = %u.bat
;	logon path = \\%L\Profiles\%u
	# disables profiles support by specifing an empty path
;	logon path =

;	add user script = /usr/sbin/useradd "%u" -n -g users
;	add group script = /usr/sbin/groupadd "%g"
;	add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
;	delete user script = /usr/sbin/userdel "%u"
;	delete user from group script = /usr/sbin/userdel "%u" "%g"
;	delete group script = /usr/sbin/groupdel "%g"


;	local master = no
;	os level = 33
;	preferred master = yes


;	wins support = yes
;	wins server = w.x.y.z
;	wins proxy = yes

;	dns proxy = yes


;	load printers = yes
	cups options = raw
;	printcap name = /etc/printcap
	#obtain list of printers automatically on SystemV
;	printcap name = lpstat
;	printing = cups
;	map archive = no
;	map hidden = no
;	map read only = no
;	map system = no
;	store dos attributes = yes

;[homes]
;	comment = Home Directories
;	browseable = no
;	writable = yes
;	valid users = %S
;	valid users = MYDOMAIN\%S

;[printers]
;	comment = All Printers
;	path = /var/spool/samba
;	browseable = no
;	guest ok = no
;	writable = no
;	printable = yes

;	[netlogon]
;	comment = Network Logon Service
;	path = /var/lib/samba/netlogon
;	guest ok = yes
;	writable = no
;	share modes = no


;	[Profiles]
;	path = /var/lib/samba/profiles
;	browseable = no
;	guest ok = yes


;	[public]
;	comment = Public Stuff
;	path = /home/samba
;	public = yes
;	writable = yes
;	printable = no
;	write list = +staff
	[video]
	comment = 4kgarden video
	path = /u01
	browseable = yes
	available = yes
	writable = yes
	public = yes
           

繼續閱讀