Configuring Samba Server

Hello All

Before I begin with tutorial, I would Like to mention that this is the second time I am writing this tutorial, I wrote it like 90% and then the X hanged and i had to reboot, when I opened the browser, everything was gone ūüė¶

OK so lets start with the tutorial

I will be assuming the following

– You have Fedora 14 Installed (Before my system hanged, I stated the reason for using Fedora 14 is that is so Stable but not this time x-( )

– You are root, Discouraged but it make life easier, you can use su – or sudo

– You already have installed Samba Server installed, If not you can Install it using the Following command

#yum install samba samba-client samba-common system-config-samba

or if you are using Ubuntu

#apt-get install samba samba-client samba-common system-config-samba

– To be on the Safe side, Run the Following command just once

#/etc/init.d/samba restart

Configuring Samba Through GUI:

Lets Get Started

1. Click Launch Menu, Go to Applications -> Administration -> Samba

2. Click Preference -> Server Settings

– In workgroup field type workgroup as it matches most of MS Windows Default workgroup name

– Type a suitable description for it

– Click the Security Tab and in Authentication Mode Select User

Encrypted Password as Yes

Guest Account as No Guest Account

– Click OK to Save Settings and Close the Window

3. Now go to Preference -> Samba Users

– Click Add User button

– In Unix Username Select one of your local username name from the List

– In Windows Username, type the username that will be logged on Windows System

– Type and confirm your New Samba Passwords

– Click OK to save Settings and close this Window

4. Now Click the huge Plus Icon on the main tool bar

– In Basic Tab Choose the folder you want to share

– Give your share a name

– and type description for your share

– Give permissions like Writable and Visible if you want to

– In Access Tab Check the User you want to give access to or on the other hand you can give access to everyone

– Click OK to save Settings and Close windows and the samba service will automatically be restarted

5. Now on Windows System, Click the Network Icon on Side bar, you will be able to see your Linux System. If you are unable to see it, just type your systems name in run preceded by two forward slashes.

6. Type your Unix Username and Samba Password and You are logged in.

Configuring Samba in Text Mode:

To configure Samba in Text mode or though command line, you would need to edit smb.conf file containing all the information needed by samba server, In fact the GUI tool saves its settings to this file, so you can either use the GUI tool or modify this file though hand. So lets get started

1. Run the Following command to started edition the smb.conf file

# vi /etc/samba/smb.conf

2. Find the workgroup filed and type your workgroup name

workgroup = workgroup
server string = My personal Workgroup

3. Now find the share field and make changes accordingly

    comment = Just a simple share
    path = /home/waqar/share
    read only = no
;    browseable = yes
    valid users = waqar


Comment is the Description of the Share

Path is the path of your shared folder

Read only, means whether the share will be read only or not, In our case its writable

– Type the valid user, you can type multiple users separating them by spaces.

4. Once you are done with changes, Save them by pressing escape and type :!wq

Run the following command to restart Samba Server

#service smb restart

5. Check your Windows System

6. And we are done.

2 thoughts on “Configuring Samba Server

  1. Its really nice, Hey I was wondering if you could do a post on how to configure a linux server for load balancing, like utilize two internet connections to maximize bandwidth. It would be really nice.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s