How to Install Samba Server on Ubuntu

By using samba file sharing want to share files between your Ubuntu and Windows computers. To install samba open a terminal window and enter the following command:
sudo apt-get install samba smbfs
Now samba is installed . We need to configure it to make accessible from windows machine.
#sudo gedit /etc/samba/smb.conf
Find this section in the file:
####### Authentication #######
# “security = user” is a good ideato use. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba-HOWTO-Collection/ServerType.html
# in the samba-doc package for details.
; security = user

Uncomment the security line, and add another line to make it look like this:
security = user
username map = /etc/samba/smbusers

This sets Samba to use the smbusers file to look up the user list.
Create a Samba User
There are two steps for creating a users. 1st we’ll run the smbpasswd utility to create a samba password for the user.
#sudo smbpasswd -a

Next, we’ll add that username to the smbusers file.
#sudogedit /etc/samba/smbusers
Add in the following line, substituting the username with the one you want to give access to.
The format is  = “”.  Different samba user name can be used to map to an ubuntu account which is not really necessary right now.
= “
Now you can create “Samba Shares” and give access to the users that you listed here.

Aly Chiman

Aly Chiman is a Blogger & Reporter at which covers a wide variety of topics from local news from digital world fashion and beauty . AlyChiTech covers the top notch content from the around the world covering a wide variety of topics. Aly is currently studying BS Mass Communication at University.