Comments on Ubuntu 10.04 Samba Standalone Server With tdbsam Backend
This tutorial explains the installation of a Samba fileserver on Ubuntu 10.04 and how to configure it to share files over the SMB protocol as well as how to add users. Samba is configured as a standalone server, not as a domain controller. In the resulting setup, every user has his own home directory accessible via the SMB protocol and all users have a shared directory with read-/write access.
3 Comment(s)
Comments
this is article i'm looking about, thanks for writing this..
This is a complete smb.conf
[GLOBAL]
netbios name = dominio
server string = Servidor de Dominio
workgroup = conasinf.com
security = user
dont descend = .recycle
[HOMES]
comment = Recurso Personal
browseable = no
valid users = %S
writable = yes
create mask = 0700
directory mask = 0700
vfs object = recycle
recycle:config-file = /etc/samba/recycle.conf
recycle:repository = .recycle
recycle:keeptree = Yes
recycle:versions = Yes
[SAMBA]
comment = Servidor de Archivos
path = /home/samba
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
vfs object = recycle
recycle:config-file = /etc/samba/recycle.conf
recycle:repository = .recycle
recycle:keeptree = Yes
recycle:versions = Yes
As you can see this file uses a reference to the recycle.conf file:name = .recycle
This configuration allow to keep the files after they are erased on a directory called .recycled
mode = KEEP_DIRECTORIES|VERSIONS|TOUCH
maxsize = 0
exclude = *.tmp|*.TMP|*.temp|*.o|*.obj|~$*|*.~??|*.log|*.trace
excludedir = /tmp|/temp|/cache
noversions = *.ppt|*.dat|*.ini
directory_mode = 0700
Having spent a week trying to fix a permissions/authorisation problem with a fresh install of e-box/webmin I gave up.
So I went back to basic did a fresh install of Ubuntu server + Samba and followed the instructions above. Took 15 mins after the install. Hence the yeahhhaaaaaaa.
Proof if it was needed that doing the basics is a great way of learning stuff and getting things to work without layers of "help" and complexity.
So thanks from ever so grateful I can have Sunday off Richard in London UK.