[KLUG Members] Samba "create mask" and "force create mode" ??
   
    Mike Morrett
     
    members@kalamazoolinux.org
       
    Wed,  4 Feb 2004 08:44:04 -0500
    
    
  
FYI: I'm running SuSE 9.0 Pro with Samba 2.2.8a-SuSE
I'm having difficulty understanding on how to have files on a Samba
share have a 774 file permission mode.
See the "/stuff" share in my smb.conf file.  That does what I want,
but I don't thing that is the "correct" way.  Maybe I need to do
chmod on the "/stuff" directory??
Thanks,
Mike
P.S.  I have printing turn off for now... I'll mess with it later.
P.S.S.  Please feel free to make any comments/suggestions about my
smb.conf file.
-------------------------------------------------------------------
# /etc/samba/smb.conf
#
http://www-106.ibm.com/developerworks/eserver/tutorials/samba/index.html
# last update: 02/04/04 08:26am
[global]
	# basic server settings
	workgroup = NO-CATS
	server string = Samba PDC running %v
	socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
	# PDC and master browser settings
	os level = 65
	domain master = yes
	domain logons = yes
	preferred master = yes
	local master = yes
	# security and logging settings
	hosts allow = 127.0.0.1 192.168.1.0/255.255.255.0
	security = user
	encrypt passwords = yes
	update encrypted = yes
	log file = /var/log/samba/log.%m
	log level = 2
	# user profiles and home directory
	logon home = \\%L\%U
	logon drive = H:
	logon path = \\%L\%U\.msprofile
	logon script = netlogon.cmd
	# sync UNIX passwords
	unix password sync = yes
	passwd program = /usr/bin/passwd %u
	wins support = yes
	time server = yes
;	printcap name = CUPS
;	printing = cups
;	veto files = /*.eml/*.nws/riched20.dll/*.{*}/
	# FYI: default settings for Shares
	;read only = yes
	;guest ok = no
	;browseable = yes
#===Shares===
;[printers]
;	comment = All Printers
;	path = /var/tmp
;	create mask = 0600
;	printable = yes
;	browseable = no
;[print$]
;	comment = Printer Drivers
;	path = /var/lib/samba/drivers
;	write list = @ntadmin root
;	force group = ntadmin
;	create mask = 0664
;	directory mask = 0775
[homes]
	comment = %U's HOME directory
	valid users = %S
	read only = no
	browseable = no
[netlogon]
	# mkdir -m 0775 /home/samba/netlogon
	# chown root.ntadmins /home/samba/netlogon
	comment = Network Logon Service
	path = /home/samba/netlogon
	write list = @ntadmin
	browseable = no
[doc]
	comment = /usr/share/doc/packages/
	path = /usr/share/doc/packages/
	guest ok = yes
[stuff]
	comment = /stuff/
	path = /stuff/
	read only = no
	guest ok = yes
	create mask = 0774
	force create mode = 0774
	directory mask = 0775
	force directory mode = 0775
-------------------------------------------------------------------