How to Share files in Linux?
In order to share files in Linux, you need to have following installed in your system.
If it is not installed, first install it.
sudo apt-get install samba
Once the server is install, issue the following command:
sudo gedit /etc/samba/smb.conf
Make the following changes:
workgroup = WORKGROUP
underneath it, add
netbios name = name_of_your_server (no spaces)
netbios name = pintu_smb_server
Make sure “security” is set to “user”.
Scroll down until you see “[homes]”, set:
browseable = yes
writable = yes
Then save the changes.
Finally, create a SMB user, make sure this account exists on your Ubuntu Linux.
sudo smbpasswd -a `whoami`
and set your password
There are two ways to access it:
- My network places > Entire Network > My Windows Network > Workgroup
- In the address type in “\\[whatever you named the Samba server]”. From my example above, I used “\\pintu_smb_server\“.
You should see a folder call “homes”, click on it, and it will ask you for your username and password. Enter your Ubuntu Login Name and whatever you choose for the password when you used command “smbpasswd”.
Keep in mind that you are sharing, /home/[login name]/*