[ubuntu-uk] Samba Shares
Alan Lord (News)
alanslists at gmail.com
Thu Sep 2 12:08:04 BST 2010
On 01/09/10 23:08, Cornelius Mostert wrote:
> Hi all
> I have some trouble setting up my Samba Server. Here is the Samba file:
> # Samba config file created using SWAT
I just hand code smb.conf files and and when needed.
the one below has been working just fine for years and is currently
working on my local LAN at home on a 10.04 server with Ubuntu clients
and one lone XP VM.
When you first configure samba, you do have to add a user to the
smbpasswd store using:
smbpasswd -a username
But after the first one is done I believe it is automatic (this might
not be true I don't ever recall having to add additional users manually).
FWIW, the [* Store] shares are quite interesting in that they act like a
one-way dropbox. My family can *add* pictures, music etc, but they
cannot delete. Just in case, if you know what I mean.
I wrote about how to get this to work here:
http://www.theopensourcerer.com/2008/04/17/a-shared-drop-box-using-samba/
--------------------------------------
# Samba Configuration File
# Created 27/09/07
# Global Parameters
[global]
bind interfaces only = Yes
netbios name = VIMES
workgroup = HOME-NET
unix charset = UTF-8
server string = %h server (Samba, Ubuntu)
interfaces = eth1, 127.0.0.1
hosts deny = 10.0.0.1
log level = 1
log file = /var/log/samba/log.%m
max log size = 1000
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
domain master = yes
preferred master = yes
encrypt passwords = true
obey pam restrictions = 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* .
pam password change = yes
passdb backend = tdbsam
wins support = yes
[Music Store]
comment = Shared Music Area
path = /home/music/
read only = no
valid users = +shared
browseable = yes
inherit owner = yes
directory mode = 3770
force directory mode = 3770
[Media Store]
copy = Music Store
comment = Pictures, Videos etc...
path = /home/media/
[Software Store]
copy = Music Store
comment = Software Dropbox
path = /home/sware/
[homes]
comment = Home Directory for %U
path = %H
valid users = %S
create mode = 0644
directory mode = 0755
read only = no
browseable = yes
# Add a Recycle Bin
vfs object = recycle
recycle:repository = .trash
recycle:keeptree = yes
recycle:exclude = *.tmp, *~, *.bak
-----------------------------------------------
PS - For someone with a Job title of "Senior IT Specialist" I am
somewhat surprised you are using tools like webmin and swat which do not
have the best reputations for security...
Al
--
The Open Learning Centre
http://www.theopenlearningcentre.com
More information about the ubuntu-uk
mailing list