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
[spu popup=”1530″]YOUR TEXT OR IMG HERE[/spu]
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
Now in vim file what we have to write inside this see this picture
Step-4 After this now we have to create the folder and files
[spu popup=”1530″]YOUR TEXT OR IMG HERE[/spu]
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
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
Now open the Run in windows and type the ip address of kali linux machine
After typing the ip address of kali linux machine then click ok and then one popup window will open
And here you have to write the username of kali linux and password of samba which we create before
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.
https://atomic-temporary-150512636.wpcomstaging.com/product/cyber-security-training-notes/
Categories
Very Usefull and great Article Thanks !
LikeLiked by 1 person
Thanks Hosein
LikeLike
aa{a}a’a”a
LikeLike
it works the first time … but when you shutdown or restart Kali or Windows, the access it’s nos possible … any recomendation?
LikeLike