Samba setup

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!

Post a comment

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