Home > Uncategorized > smb.conf from the turnkey fileserver

smb.conf from the turnkey fileserver

turnkey linux is awesome. I found that the samba setup in the fileserver appliance is so convenient, I’ve replicated the samba setup accross all my development environments.

For your convenience, I’m posting the smb.conf from the fileserver. It’s an incredible setup for local development so that you can add your vm’s to your file explorer.

workgroup = WORKGROUP
netbios name = FILESERVER
server string = TurnKey FileServer

os level = 20
security = user
passdb backend = tdbsam
null passwords = yes

admin users = root
encrypt passwords = true
obey pam restrictions = yes
pam password change = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .

add user script = /usr/sbin/useradd -m '%u' -g users -G users
delete user script = /usr/sbin/userdel -r '%u'
add group script = /usr/sbin/groupadd '%g'
delete group script = /usr/sbin/groupdel '%g'
add user to group script = /usr/sbin/usermod -G '%g' '%u'

guest account = nobody

syslog = 0
log file = /var/log/samba/samba.log
max log size = 1000

wins support = yes
dns proxy = no

socket options = TCP_NODELAY
panic action = /usr/share/samba/panic-action %d

comment = Home Directory
browseable = no
read only = no
valid users = %S

comment = CD-ROM
read only = yes
locking = no
guest ok = yes
path = /media/cdrom
preexec = /bin/mount /media/cdrom
postexec = /bin/umount /media/cdrom

comment = Public Share
path = /srv/storage
browseable = yes
read only = no
create mask = 0644
directory mask = 0755

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: