How To Configure Samba Server In Kali Linux

In this tutorial we are going to learn how to configure samba server in kali linux

If you want to configure samba server in kali linux then just follow these simple steps

step-1 Firstly open your kali linux system and login with the root in your kali linux machine
Step-2 After opening the kali linux and ligin with the root now open the terminal in kali linux and then we install the package of kali linux then we configure whole samba server

Here is the commands to install the samba server in kali linux

root@kali :~# apt-get install samba
Step-3 After installing the samba package in linux now we have to configure samba server

Here is the commands to configure samba server

root@kali :~# cd /etc/samba/
root@kali :~# ls
root@kali :~# rm -rf smb.conf {To delete this smb.conf old file}
root@kal :~# touch smb.conf {To create smb.conf enpty file}
root@kal :~# ls
root@kal :~# cat smb.conf {To check the content}
root@kal :~# vim smb.conf {To write the content}
root@kal :~# smbpasswd -a root {To create the password}
root@kal :~# service smbd start {To restart the service of samba}
root@kal :~# service nmdb start {To restart the service of samba}
root@kal :~# cat /etc/samba/smb.conf {To Check the content}
root@kal :~# cd
root@kal :~# pwd

Screenshot (70)

Now in vim file what we have to write inside this see this picture

Screenshot (69)
Step-4 After this now we have to create the folder and files
root@kal :~# mkdir data {To create the folder}
root@kal :~# chmod -R 777 /root/data/
root@kal :~# cd data/ {To go inside the data folder}
root@kal :~# ls 
root@kal :~# touch {1..20} {To create the empty file}
root@kal :~# ls

Screenshot (71)

Step-5 After this now open the Run in windows and type the ip address of the kali linux

How to check the ip address of kali linux

here is the command to check the ip address of kali linux

root@kal :~# ifconfig

Screenshot (72)

Now open the Run in windows and type the ip address of kali linux machine

Screenshot (73)

After typing the ip address of kali linux machine then click ok and then one popup window will open

Screenshot (74)

And here you have to write the username of kali linux and password of samba which we create before

Screenshot (75)

And here you can see the output and if you create any file or folder inside this file then it will also shown to the linux machine and if you create any file or folder inside this folder in linux machine then it will shown you to the windows also

This is all how to install and configure the samba server in kali linux

If you learn something from this article then make sure you like this post and make sure you subscribe to this website to learn more intresting topics about the linux and windows,Ethical Hacking,youtube,web desining,cryptography and much more intresting topics

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s