Mapped Network drive
Allowing yourself to map folders of your server as network drive makes it very easy to read and write to your server from another computer over your home network.
To accomplish this, we can use a service called samba.
Step 1: Install Samba
Step 2: Share a particular folder
Note
You don't need to run mkdir if the folder already exists. The chmod command does the following: chmod: Stands for "change mode," a command in Unix and Unix-like operating systems to change the access permissions of files and directories. -R: Recursively changes the permissions of the specified directory and its contents. 770: Assigns read (4), write (2), and execute (1) permissions to the owner and group. In total, it grants full read, write, and execute permissions to the users and group.
Tip
To create a linux user
To create a group To add a user to a groupStep 3: Configure Samba
Edit the Sasmba configuration file.
Add this at the end of the file:Tip
Setting guest ok = no will make it such that a valid Samba user will need to provide their credentials to access the mapped drive.
Step 4: Restart Samba
Step 5: Create a Samba User
This user needs to be an existing Ubuntu user:
Step 6: Allow access through firewall
If firewall is enabled on the Ubuntu machine, allow traffic for the Samba app.
Info
To check the firewall status run
To activate the firewall run To view available applications you can enableStep 7: Access from Windows
You should now be able to open an explorer instance on a Windows machine on the network and access \your_ubuntu_ip\SharedFolder
Tip
To find your Ubuntus ip address, run