How to install samba (aka smb) on Red Hat Linux /quick and easy guide

Well, well, well…

Just a side thought: I am going to add new tag “Q&EG” (quick and easy guide) to all similar guides from now on.

Step 1.1 – install samba via yum:

yum install samba

Step 1.2 – or via rpm:

Obtain Samba rpm from

rpm -ivh samba*.rpm

Step 2 – config file creation and change:

cd /etc/samba
mv smb.conf smb.conf.backup
vi smb.conf

And put into smb.conf following content (notice my share of apache htdocs directory – /var/www/html):

workgroup = wrkgrp
netbios name = smbserver
security = SHARE
load printers = No
default service = global
path = /home
available = No
encrypt passwords = yes

writeable = yes
admin users = smbuser
path = /var/www/html
force user = root
valid users = smbuser
public = yes
available = yes

Step 3 – add new user into system and samba and restart smb deamon:

adduser smbuser
passwd smbuser
smbpasswd -a smbuser
service smb restart

Step 4 – Now it’s time to test it and add mapped network drive in your windows (I only tested on WinXP so far):

Run “cmd” from Windows/RUN
and enter following (note my server IP: ):

net use z: \\\share /user: smbuser ***password***

Posted on February 15, 2012 at 15:49 by admin · Permalink
In: English, Linux, Q&EG

Leave a Reply