configuration-templates – Blame information for rev 81
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
81 | office | 1 | ########################################################################### |
2 | ## Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3 ## |
||
3 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
||
4 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
||
5 | ########################################################################### |
||
6 | ## Optimized standalone configuration template for Samba servers. ## |
||
7 | ## ## |
||
8 | ## Ideal for: ## |
||
9 | ## * Virtual machine file sharing ## |
||
10 | ## ## |
||
11 | ## Requirements: ## |
||
12 | ## * Samba 3.x ## |
||
13 | ## * PAM Samba Password Module (Debian: libpam-smbpass) ## |
||
14 | ## ## |
||
15 | ## File placement layout: ## |
||
16 | ## / ## |
||
17 | ## `-- etc ## |
||
18 | ## `-- samba ## |
||
19 | ## |-- smb.conf ## |
||
20 | ## |-- smb.conf.local ## |
||
21 | ## `-- smb.conf.share ## |
||
22 | ## ## |
||
23 | ## Files Description: ## |
||
24 | ## * /etc/samba/smb.conf (main configuration file) ## |
||
25 | ## * /etc/samba/smb.conf.local (local server-site settings) ## |
||
26 | ## * /etc/samba/smb.conf.share (this file) ## |
||
27 | ## ## |
||
28 | ########################################################################### |
||
29 | |||
30 | [homes] |
||
31 | comment = Home Directories |
||
32 | read only = No |
||
33 | create mask = 0700 |
||
34 | directory mask = 0700 |
||
35 | browseable = No |
||
36 | |||
37 | [www] |
||
38 | comment = Websites |
||
39 | path = /var/www |
||
40 | valid users = root www-data |
||
41 | # Create file under this user - useful for seamlessly copying files. |
||
42 | force user = www-data |
||
43 | force group = www-data |
||
44 | read only = No |
||
45 | create mask = 0664 |
||
46 | force create mode = 0664 |
||
47 | force directory mode = 0755 |