Skip to content

Instantly share code, notes, and snippets.

@madelinecr
Last active July 20, 2017 00:10
Show Gist options
  • Save madelinecr/d17df71fdd7d202a3fca to your computer and use it in GitHub Desktop.
Save madelinecr/d17df71fdd7d202a3fca to your computer and use it in GitHub Desktop.
[datastore]
comment = Data
path = /mnt/datastore
valid users = @smbusers
read only = no
locking = no
guest ok = yes
directory mask = 0755
create mask = 0700
writable = yes
@aVallerga
Copy link

[storage]
path = /mnt/storage
comment = Root Share Directory
browseable = yes
read only = no
writeable: yes
create mask = 0664
force directory mode = 2764
locking = no
guest ok = yes
force group = storage

@aVallerga
Copy link

➜ / testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[storage]"
Processing section "[print$]"
Loaded services file OK.
Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

Global parameters

[global]
server role = standalone server
map to guest = Bad User
obey pam restrictions = Yes
pam password change = Yes
passwd program = /usr/bin/passwd %u
passwd chat = Enter\snew\s\spassword:* %n\n Retype\snew\s\spassword:* %n\n password\supdated\ssuccessfully .
unix password sync = Yes
syslog = 0
log file = /var/log/samba/log.%s
max log size = 1000
dns proxy = No
usershare allow guests = Yes
panic action = /usr/share/samba/panic-action %d
idmap config * : backend = tdb

[homes]
comment = Home Directories
valid users = %S
create mask = 0755
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
printable = Yes
print ok = Yes
browseable = No

[storage]
comment = Root Share Directory
path = /mnt/storage
force group = storage
read only = No
create mask = 0664
force directory mode = 02764
guest ok = Yes
locking = No

[print$]
comment = Printer Drivers
path = /var/lib/samba/printers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment