Categories: UbuntuUbuntu 12.04

How to install samba on ubuntu 12.04

Samba on ubuntu 12.04

Samba is a software package which helps to share files between linux and windows, This post explains, how to share files between ubuntu and windows using samba. This is a very basic guide only for beginners.

Samba installation on ubuntu 12.04 :

Open terminal ( CTRL + ALT + t ) and follow the steps.
Step 1 » Update the respository .
krizna@leela:~$ sudo apt-get update
Step 2 » Install samba by typing the below command.
krizna@leela:~$ sudo apt-get install samba samba-common
Step 3 » Install GUI admin tool and it’s dependencies.
krizna@leela:~$ sudo apt-get install python-glade2 system-config-sambanow the installation is over.

Samba configuration on ubuntu 12.04 :

Step 4 » Create a user with restricted shell access.
krizna@leela:~$ sudo useradd -s /bin/false myshareHere myshare is the username.
Step 5 » create samba password for the user myshare.
krizna@leela:~$ sudo smbpasswd -a myshare
New SMB password:
Retype new SMB password:
Step 6 » Create a folder for sharing .
krizna@leela:~$ sudo mkdir /shareyou can also create in the user home directory .
Step 7 » Modify ownership of the share folder .( Not required if the folder is created in home directory ).
krizna@leela:~$ sudo chown -R myshare /share
Step 8 » Now open the GUI Samba admin tool

Step 9 » Click Add new share and enter the share details under basic tab like below image.

Step 10 » Add the username ( myshare ) for your share under access tab and click ok.

Step 11 » Now you can able to access you share from windows machines using ip address.



Step 12 » From ubuntu



Have a nice day

Disqus Comments Loading...

Recent Posts

How to install Visual Studio Code on ubuntu 20.04

Visual Studio Code is a popular code editor which is lightweight and cross platform application.…

4 years ago

How to install MySQL workbench on ubuntu 20.04

MySQL workbench is a GUI tool for managing MySQL database system. It is used by…

4 years ago

How to install Android Studio on ubuntu 20.04

Android Studio is a popular development software used especially for developing android applications. It is…

4 years ago

How to install google chrome on ubuntu 20.04

Google chrome is a most popular web browser developed by google. It was developed to…

4 years ago

How to install Zoom on ubuntu 20.04

Zoom is a popular video conferencing software. It is commonly used for conducting online meetings,…

4 years ago

How to install TeamViewer on ubuntu 20.04

TeamViewer is a popular application for desktop sharing and remote control. It is available for…

4 years ago