File Sharing in Linuxmint


File sharing in Linux is quite easy if we follow the proper steps. Without taking time just follow the following steps. This steps is followed in Linuxmint but as possible you can use the same way in another distro as well.

First of all install the samba and its related packages. When you enter '*' on the end then it includes all related packages from the library.
$    sudo apt install samba*
Then enable samba in firewall
$    sudo ufw allow Samba
Create the client Id password
$    sudo useradd suman
$    sudo passwd Suman@123
When you add the user on your pc then it is for the local use. You need to provide the sharing password on shamba. It can be anything you wish. You just need to register desirable password and to to so  just Add Samba Sharing password using this command.
$    sudo smbpasswd -a suman
then enter the password for 'suman'.


> Now or any time just right click the folder you wish to share and click the sharing option.
> Switch on the option Share this folder.
>Now you can open the folder using smb://<IP address> in linux and \\<ipaddress> on windows.
Work is done. enjoy the sharing..