Fedora 13 Samba Standalone Server With Tdbsam Backend
Fedora 13 Samba Standalone Server With Tdbsam Backend
Fedora 13 Samba Standalone Server With Tdbsam Backend
By Falko Timme
Published: 2010-08-03 13:19
Follow me on Twitter
Last edited 06/08/2010
This tutorial explains the installation of a Samba fileserver on Fedora 13 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.
I do not issue any guarantee that this will work for you!
1 Preliminary Note
I'm using a Fedora 13 system here with the hostname server1.example.com and the IP address 192.168.0.100.
Please make sure that SELinux is disabled as shown in chapter 5 of this tutorial: The Perfect Server - Fedora 13 x86_64 [ISPConfig 2] - Page 3
2 Installing Samba
Connect to your server on the shell and install the Samba packages:
vi /etc/samba/smb.conf
Make sure you see the following lines in the [global] section:
[...]
# ----------------------- Standalone Server Options ------------------------
#
# security = the mode Samba runs in. This can be set to user, share
# (deprecated), or server (deprecated).
#
# passdb backend = the backend used to store user information in. New
# installations should use either tdbsam or ldapsam. No additional configuration
# is required for tdbsam. The "smbpasswd" utility is available for backwards
# compatibility.
#
security = user
passdb backend = tdbsam
[...]
Then create the system startup links for Samba and start it:
/etc/init.d/smb start
Create the directory for sharing the files and change the group to the users group:
mkdir -p /home/shares/allusers
vi /etc/samba/smb.conf
[...]
[allusers]
comment = All Users
path = /home/shares/allusers
valid users = @users
force group = users
create mask = 0660
directory mask = 0771
writable = yes
If you want all users to be able to read and write to their home directories via Samba, add the following lines to /etc/samba/smb.conf (make sure you
comment out or remove the other [homes] section in the smb.conf file!):
[...]
[homes]
comment = Home Directories
browseable = no
valid users = %S
writable = yes
create mask = 0700
directory mask = 0700
/etc/init.d/smb restart
Set a password for tom in the Linux system user database. If the user tom should not be able to log into the Linux system, skip this step.
passwd tom
smbpasswd -a tom
Now you should be able to log in from your Windows workstation with the file explorer (address is \192.168.0.100 or \192.168.0.100tom for tom's
home directory) using the username tom and the chosen password and store files on the Linux server either in tom's home directory or in the public shared
directory.
5 Links
- Samba: http://www.samba.org/
- Fedora: http://fedoraproject.org/