Samba Server Installation on Ubuntu and transfer Files
across window and Ubuntu
Samba allows file and print sharing between computers running Windows and computers
running UNIX. It is an implementation of dozens of services and a dozen protocols. Samba is an
implementation of the Server Message Block (SMB)/Common Internet File System (CIFS)
protocol for UNIX systems, providing support for cross-platform file and printer sharing with
Microsoft Windows, OS X, and other UNIX systems. Samba was originally developed
for UNIX but can now run on Linux, FreeBSD and other UNIX variants. It is freely available
under the GNU License. SAMBA has a client-server based architecture and consists of tools
that can be used for developing services or test configurations.
Samba is not installed by default. Open a terminal and type the following command:
sudo apt-get install samba
We have to make some changes to its configuration file. Open terminal and type this.
sudo gedit /etc/samba/smb.conf
Editor opens ….
Now scroll down further till you reach the “Authentication” section. You should see the line:
Remove the “#” at the front of the line.
# security = user
Continue to scroll down further until you reach the “Share Definitions” section. This is where you
configure the files/folders that you want to share with others.
Remove the “;” at the front of the line.
comment = Home Directories
browseable = yes
valid users = %S
read only = no
Don’t forget to change the browseable value to “yes”. You can also uncomment the read only
= no line if you allow others to write to your Home folder.
To add additional file sharing path, add the following lines to the end of the file:
comment = New Share Path
path = /path/to/share/folder
browseable = yes
guest ok = yes
read only = no
create mask = 0755
Lastly, save and exit the file.
Comment: a short description of the share. Adjust to fit your needs.
path: the path to the directory to share
Browseable: enables Windows clients to browse the shared directory using Windows
Guest ok: allows clients to connect to the share without supplying a password.
Read only: determines if the share is read only or if write privileges are granted. Write
privileges are allowed only when the value is no, as is seen in this example. If the value
is yes, then access to the share is read only.
Create mask: determines the permissions new files will have when created.
Setting Samba user password
Make sure you are login as admin.You can also create a new user account and add this
user to the Samba user list to create a user account, use the following command:
To add yourself to the Samba user list, you just have to type the following command: It
will then prompt you to set a password for this Samba account.
sudo smbpasswd -a <username>
sudo restart smbd
sudo restart nmbd
Now find the IP address on Ubuntu
Suppose you are making two folders in Download folder and path is:
Open run on window and write IP address of Ubuntu
Window security Box is appear so you are enter the name and password of user that
you create previous through commad adduser.
Now, your folders are successfully share across Ubuntu and Window.