This tutorial is based on RHEL/CentOS/Fedora/ScientificLinux distros.
0. check which package contains Samba Server
# yum provides samba\* or # yum list samba\*1. If it is not installed, install SAMBA Server
yum install samba.i3862. Configuring Samba Server
# cd /etc/samba
# mv smb.conf smb.conf.backup
# vi smb.conf
Paste content below in to your vi:
[global]
workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes
[share]
writeable = yes
admin users = smbuser
path = /home/share
force user = root
valid users = smbuser
public = yes
available = yes
Now you have to create users in linux server and in samba server.
2.1 Add linux account
# useradd smbuser2.2 Set password for user
passwd smbuser2.3 Create same user account on samba
smbpasswd -a smbuser2.4 put same password as your unix account password in Samba
2.5 Restart samba daemon
# service smb restartSAMBA Client under windows basic conf
You can configure mapping shares from Samba server from cmd line and from gui interface in windows. I present here how to do this in Windows XP.
Command line configuration
Setup drive letter on our Windows so we can easily access these files.
Start -> run -> cmd
At the prompt type:
net use z: \\ip_of_your_samba_server\share /user: smbuser password_you_assignedGUI configuration
1. Right click on My Computer icon and choose ''Map Network Drive''
2. Type UNC path
3. Now each time your system boots, it will automatically maps shared directory from Samba server
SAMBA Client under linux basic conf
# mount -t cifs -o username=smbuser,passwd=smbuser123 //192.168.56.127/share /mnt




