This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
picoenterprise:fileserver [2016/05/18 21:35] Luc Nieland |
picoenterprise:fileserver [2016/05/20 17:00] (current) Luc Nieland |
||
---|---|---|---|
Line 9: | Line 9: | ||
- | Configure /etc/samba/smb.conf | + | Configure /etc/samba/smb.conf (for Samba-4) |
<code> | <code> | ||
[global] | [global] | ||
workgroup = PICOENTERPRISE | workgroup = PICOENTERPRISE | ||
- | server string = %h server | + | ;server string = %h server |
dns proxy = no | dns proxy = no | ||
log file = /var/log/samba/log.%m | log file = /var/log/samba/log.%m | ||
Line 20: | Line 20: | ||
syslog = 0 | syslog = 0 | ||
panic action = /usr/share/samba/panic-action %d | panic action = /usr/share/samba/panic-action %d | ||
- | ;security = user | + | server role = standalone server |
- | encrypt passwords = true | + | ;encrypt passwords = true |
passdb backend = tdbsam | passdb backend = tdbsam | ||
obey pam restrictions = yes | obey pam restrictions = yes | ||
Line 36: | Line 36: | ||
read only = no | read only = no | ||
guest ok = no | guest ok = no | ||
- | create mode = 0664 | + | create mask = 0775 |
- | directory mode = 0775 | + | directory mask = 0775 |
+ | valid users = %S | ||
[data1] | [data1] | ||
comment = Data1 | comment = Data1 | ||
path = /data1 | path = /data1 | ||
- | write list = @fred | + | write list = @fred,@john |
- | valid users = @fred | + | valid users = @fred,@john |
force group = "fred" | force group = "fred" | ||
- | create mode = 664 | + | create mask = 0775 |
- | directory mode = 775 | + | directory mask = 0775 |
</code> | </code> | ||