Samba: How do you install and set up Samba in linux? [Redhat Enterprise(RHEL), CentOS, Fedora]

Setting up Samba “can” be complicated at times. Especially if you are looking for instructions online where there are WAY too many tutorials which go in to details about what configuration does what, etc. Well, this post is nothing like that. Here I just show you quick and easy way to install Samba, configure it, and set up the drive letter on your XP/Vista. NOTE: for using Samba with Vista, please see my previous post in which I talk about changing settings in Vista so you can connect to your Samba share: Windows Vista Installation

NOTE: This set up is very “open” and should not be used on servers which are facing the world. This is for private network where you trust all the computers and its users.

Installing Samba (using yum on CentOS and Fedora): yum install samba
Installing Samba (using rpm):

  1. Obtain Samba rpm from rhn.redhat.com
  2. rpm -ivh samba*.rpm

Configuring Samba:
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

save and exit

adduser smbuser #add unix account
passwd smbuser #set unix account password
smbpasswd -a smbuser #lets create same user account on samba
<put same password as your unix account password>
/etc/init.d/smb restart

Now let us setup drive letter on our Windows so we can easily access these files.

Start -> run -> cmd <enter>

At the prompt type: net use z: \\ip_of_your_samba_server\share /user: smbuser password_you_assigned

That is it! At this point you have successfully set up Samba under Linux and are now successfully connected to your share from your Windows machine.

60 thoughts on “Samba: How do you install and set up Samba in linux? [Redhat Enterprise(RHEL), CentOS, Fedora]

  1. sephora in store coupons at jc penney

    Leather jackets from the 1950s are specially well-known and in substantial desire.
    For a whopping $24,000 you get oodles of tools, protective gear, cases,
    and weapons equipment. That seems to be the case with Facebook, which, as
    reported by Tech – Crunch’s Erick Schonfeld, has removed a piece of fine commercial
    ingenuity from its site.

  2. dota2hack.org

    Hello other sites works good to me but your site
    is starting slowly which actually had taken about
    one minute to load, I don’t know whether it’s my own issue
    or perhaps your web site problems. Well, Thank you for putting up such a amazing
    articles. Perhaps this has already been beneficial to lots of individuals who came on this page.
    This one is undoubtedly wonderful everything that you actually have concluded and
    want to discover more awesome posts from your site.
    Right after checking out your article, I’ve book-marked
    your web page.

  3. candy 104

    Greate pieces. Keep posting such kind of information on your page.

    Im really impressed by it.
    Hello there, You have performed a fantastic job. I will certainly digg it
    and in my view suggest to my friends. I’m confidnt they will be benefited from this website.

  4. Gwendolyn

    It ‘called one of the best photo editing software.Rich in effects and customization with amazing lighting effects that allow you to make your photos beautiful masterpieces.Thousands of people satisfied, now for you is under discount.Take advantage of it, use IMAGIC PHOTO! info and buy–> http://9nl.co/ImagePhotoSoftware

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>