Skip to content

Instantly share code, notes, and snippets.

@nexeck
Created January 28, 2012 18:46
Show Gist options
  • Select an option

  • Save nexeck/1695401 to your computer and use it in GitHub Desktop.

Select an option

Save nexeck/1695401 to your computer and use it in GitHub Desktop.
smb.conf
#======================= Global Settings =======================
[global]
workgroup = WORKGROUP
server string = %h server
include = /etc/samba/dhcp.conf
dns proxy = no
log level = 0
syslog = 0
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = yes
panic action = /usr/share/samba/panic-action %d
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = no
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
socket options = TCP_NODELAY
guest account = nobody
load printers = no
disable spoolss = yes
printing = bsd
printcap name = /dev/null
unix extensions = yes
wide links = no
map to guest = Bad User
use sendfile = no
null passwords = no
local master = yes
time server = no
wins support = no
#======================= Greyhole Settings =======================
[global]
unix extensions = no
wide links = yes
#======================= Share Definitions =======================
[gh004]
path = /media/356ca1bb-2016-400e-b20e-e37fac9da28c/gh004
guest ok = yes
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = nobody
invalid users =
read list =
write list = nobody
[gh003]
path = /media/3c464dc8-6940-47c9-b553-8fadc30f56b8/gh003
guest ok = yes
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = nobody
invalid users =
read list =
write list = nobody
[gh002]
path = /media/185d68f5-244c-42c0-8402-306b0e07bb17/gh002
guest ok = yes
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = nobody
invalid users =
read list =
write list = nobody
[gh001]
path = /media/5c52e55a-5ac5-43ae-932b-5682d2a33901/gh001
guest ok = yes
read only = no
browseable = yes
inherit acls = no
inherit permissions = no
ea support = no
store dos attributes = no
printable = no
create mask = 0755
force create mode = 0644
directory mask = 0755
force directory mode = 0755
hide dot files = yes
valid users = nobody
invalid users =
read list =
write list = nobody
#======================= Greyhole Shares =======================
[gh004]
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
[gh003]
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
[gh002]
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
[gh001]
dfree command = /usr/bin/greyhole-dfree
vfs objects = greyhole
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment