Joey’s Linux Scams

Samba setup

Posted by: Joey on: December 13, 2006

Here is an Ubuntu 6.10 Samba setup guide blatantly ripped from this blog. If you have more than one computer and a mixture of Linux and Windows, Samba is essential for sharing files and printers. Enjoy!

  1. Install samba

    sudo apt-get install samba smbfs


  2. Add a system user for samba

    System > Administration > Users and Groups > Add User

    Enter the username as samba
    Enter the password


    In the "User Priviliges" tab, deselect all.
    In the "Advanced" tab, choose "/bin/false" as shell, and "users" as the Main Group.


  3. Add samba user

    sudo smbpasswd -a samba

    Enter the password desire

    *This is the username and password that will be require when you are connecting to your ubuntu guest through windows box.


  4. Edit smbusers file

    gksudo gedit /etc/samba/smbusers

    Enter this in the file

    samba = "network username"

    Save the file and exit gedit


  5. Edit smb.conf configuration file

    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.default
    gksudo gedit /etc/samba/smb.conf


  6. Change your workgroup name in smb.conf

    # Change this to the workgroup/NT-domain name your Samba server will part of
    workgroup = YOUR_WORKGROUP_NAME


  7. Uncomment security section

    ; security = user

    Change into

    security = user
    username map = /etc/samba/smbusers


  8. Add samba share

    System > Administration > Shared Folders
    Enter information for your desired shared


  9. Test configuration and restart samba

    sudo testparm
    sudo /etc/init.d/samba restart

That’s it!

1 Response to "Samba setup"

Hi, Just like to tell you that this piece of info is one quick to the point, no nonsense, workable and effective way to have directories shared in Linux as fast as possible. It worked for me and thank you for the effort. Keep up the good work.

Leave a Reply