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

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 = /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.

78 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.


    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–>

  5. boat

    I visited ѕeveral wweb рages hosever tthe audio feature
    fοr audio soings current аt tҺiѕ web site iis іn fct excellent.

    Check &#11423ut mү web blog; boat

  6. blog tin tuc 247

    Wonderful blog! Do you have any suggestions for aspiring writers?

    I’m planning to start my own site soon but I’m a little lost on everything.
    Would you suggest starting with a free platform like
    Wordpress or go for a paid option? There are so many choices out there that I’m completely confused ..
    Any suggestions? Bless you!

  7. Pingback: Linux Os Redhat |

  8. Pingback: Set Up WordPress Centos. – Virtual dedicated server

  9. lauren polo

    After I originally left a comment I seem to have clicked on the -Notify me
    when new comments are added- checkbox and now whenever
    a comment is added I receive four emails with the
    exact same comment. Is there a way you can remove me from that service?

  10. Haylosa34d
    Buying a used or new auto can be quite a difficult method should you not know what you are undertaking. By educating yourself about auto purchasing prior to visit the dealership, you may make issues simpler yourself. The following advice may help your next store shopping trip become more pleasant.

    Generally take a technician alongside when searching for a fresh motor vehicle. Car merchants are well known for marketing lemons and you may not need to be their next victim. When you can not have a auto technician to look at autos with you, no less than ensure that you have him look at your last selection before buying it.

    Know your boundaries. Before starting store shopping for your vehicle or truck, make a decision what you can manage to pay out, and follow it. Don’t neglect to add curiosity about your estimations. You are likely to shell out about 20 % as a payment in advance as well, so prepare yourself.

    Before seeing a dealer, know what sort of vehicle you would like. Analysis each one of you possibilities prior to purchasing so that you can evaluate which works for your financial allowance and family members demands. Shop around to determine just how much you must pay for a probable automobile.

    Prior to signing any deal make time to go through each line, like the small print. If there is nearly anything listed that you do not understand, tend not to indicator until you have an answer that you just fully grasp. Unsavory salesmen can use a legal contract to put in several charges which were not mentioned.

    If you keep the preceding guidance in your mind when that you just go purchasing a car, you will certainly be very likely to obtain a good deal. Purchasing a car does not have to be a headache. Simply use the guidelines with this write-up and you can have the car you desire in a good cost.

  11. ???????????????

    RE:Samba: How do you install and set up Samba in linux? [Redhat Enterprise(RHEL), CentOS, Fedora] | Technology: Learn and Share ????? ?????????? ????-??????

  12. Cyrstal Guiab

    There are definitely a lot of details like that to take into consideration. That may be a nice level to bring up. I supply the ideas above as normal inspiration however clearly there are questions just like the one you deliver up where the most important thing will probably be working in sincere good faith. I don?t know if best practices have emerged around things like that, however I’m sure that your job is clearly identified as a fair game. Both girls and boys feel the impact of only a moment’s pleasure, for the remainder of their lives.

  13. kobe sneakers

    I wanted to send you that little remark in order to thank you so much again just for the incredible methods you’ve shown on this website. This is simply pretty open-handed of people like you to offer without restraint all most of us would have advertised for an electronic book to end up making some profit on their own, certainly considering that you might well have done it if you considered necessary. Those concepts in addition worked as a fantastic way to be certain that other people have similar zeal just like my own to know a good deal more when considering this issue. I’m sure there are thousands of more fun sessions in the future for many who start reading your blog post.

  14. fenty puma

    I have to point out my affection for your generosity giving support to persons who must have guidance on this particular situation. Your real dedication to getting the message all through was certainly valuable and have without exception permitted associates much like me to get to their ambitions. Your new warm and friendly key points entails a lot to me and much more to my fellow workers. Many thanks; from all of us.

  15. off white jordan 1

    Thanks so much for giving everyone an extraordinarily nice chance to discover important secrets from this web site. It’s usually so brilliant and as well , full of amusement for me and my office peers to search your web site a minimum of thrice weekly to read through the fresh items you have got. And of course, I’m at all times contented for the sensational pointers you serve. Certain 4 areas in this posting are easily the most impressive I’ve had.

  16. Alisia

    Thanks , I’ve recently been looking for information about this subject for
    a long time and yours is the best I’ve discovered so far.
    However, what concerning the bottom line? Are you certain concerning the source?

Leave a Reply

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