How to share folders in ubuntu with samba

Ubuntu

  1. Install samba with apt-get.
  2. Edit the /etc/samba/smb.conf file.
    [global]
     netbios name = ALEXRAIT
     workgroup = MSHOME
     announce version = 5.0
     socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPLIVE SO_RCVBUF=819 SO_SNDBUF=8192
     
     passdb backend = tdbsam
     security = user
     null passwords = true
     username map = /etc/samba/smbusers
     name resolve order = hosts wins bcast
     
     wins support = yes
     
     printing = CUPS
     printcap name = CUPS

     syslog = 1
     syslog only = yes


    [E]
    path = /media/hda5
    available = yes
    browsable = yes
    public = yes
    writable = no
  3. As a result we share the folder specified under "E". "E" Is the name of the shared folder that appears if we access the computer from other LAN station. You can add more of these folders or use a Configuration GUI that comes with ubuntu (Look at the System menu).
  4. Now we must add a user that will have the permission for browsing our folders. Do it like this:  smbpasswd -L -a alexrait
  5. Enter a non-empty password.
  6. That is it




Post a Comment

Previous Post Next Post