How to install Samba Server on ubuntu

This post was written by admin on July 10, 2009
Posted Under: General, Internet

Samba is a good choice for sharing files between Ubuntu and Windows computers.
To install samba server,you can just run following command in terminal:

sudo apt-get install samba smbfs

After installed samba,we need to configure it to make it accessible by following command

sudo gedit /etc/samba/smb.conf

At following screen,change and make it look like the marked section
snapshot125

Now create a samba user by following command

sudo smbpasswd -a username

And add that username to the smbusers file.

sudo gedit /etc/samba/smbusers

Add in the following line, substituting the username with the one you want to give access to

ubuntuusername = “samba username”

Use the name you created in “sudo smbpasswd -a username” instead samba username.

Related posts:

  1. Create,Modify,Delete samba shares with system-config-samba(GUI) in Ubuntu Linux
  2. How to Share Ubuntu Home Directory with Windows
  3. Install and Enable Telnet server in Ubuntu Linux
  4. How to install LAMP server in Ubuntu 9.04
  5. The easiest way Installing Lamp server in Ubuntu

    Tags:

    Reader Comments

    Nice and clear. The last line confuses me, though. My username is ray. What should I type?

    ray = “samba username”
    ubuntuusername = “samba ray”
    ray = “ray”

    Thanks!

    [Reply]

    admin Reply:

    ray=”ray”

    [Reply]

    #1 
    Written By Ray on August 10th, 2009 @ 4:06 am

    Hi sir,

    i m trying to configure samba. smb.conf i changes as follows
    [global]
    workgroup = R&D
    wins support = yes
    security = user
    username map = /etc/samba/smbuser

    /after that i create one directory as test
    /[test]
    path = /share/test
    available = yes
    browseable = yes
    public = yes
    writable = yes
    guest ok = no

    after that much configuration i restart the samba.
    but it will give me error as

    \\linuxserver-ip\test is not accessible. You might not have permissions to use this network resources.Contact the administrator of this server to find out if you have access permission.

    i change the permission of test directory as 774.
    Thanks in advance.

    [Reply]

    #2 
    Written By rupali on December 4th, 2009 @ 4:47 am

    Add a Comment

    required, use real name
    required, will not be published
    optional, your blog address