Archive

Archive for April, 2010

smb.conf from the turnkey fileserver

April 19, 2010 Leave a comment

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.


[global]
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

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

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

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

Categories: Uncategorized