

- SET UP NETWORK FILE SHARING HOW TO
- SET UP NETWORK FILE SHARING MAC OS X
- SET UP NETWORK FILE SHARING INSTALL
- SET UP NETWORK FILE SHARING PASSWORD
sudo mkdir -p /home/hendadel/sambaprivate/ Now, create a directory to share in private. sudo smbpasswd -a hendadel Add user to group
SET UP NETWORK FILE SHARING PASSWORD
What if you need to share a folder with some specific users, or in other words users who have username and password only can access the shared directory.įirst, we need to create a group, add users and members to this group and only members of this group should have access to the shared directory.Ĭreate a group: sudo addgroup smbgroup Create a GroupĪdd your Ubuntu user to the smbgroup. Previously, we had a public folder for all network members. You can now create folders or files inside the shared directory from your Windows machine and check if they created in Ubuntu too.įirst, create a test folder from Windows: Create Test FolderĬheck the created folder from Ubuntu: Check Created Folder Step 9 – Set Private Shared Directory The shared folder should like this: Shared Folder From Windows \2.168.1.8\sambashare Open Shared From Run Now from your Windows machine, open run and use the following command to open Ubuntu shared folder. sudo service smbd restart Restart Samba Services Step 8 – Access Samba Share on Windows The output should be like this: Samba Configuration File Check Step 7 – Restart Samba Service. sudo cp /etc/samba/smb.conf /etc/samba/Įdit Samba configuration file sudo vi /etc/samba/smb.confĪdd the next lines to Samba configuration file: įorce user = nobody Edit Samba Config FileĬheck the Samba configuration file using the next command. Sudo chmod -R 0775 /home/hendadel/sambashare/ Create a Shared Directory Step 6 – Copy and setup Config fileĬopy Samba default configuration file to be a backup file in case any error happens in the future. sudo chown -R nobody:nogroup /home/hendadel/sambashare/ Set the directory permissions so that anyone can read/write to it.

The output should like below: Verify Samba Installation Step 5 – Setup Public Shared Folder on UbuntuĬreate a public directory on Ubuntu for sharing.
SET UP NETWORK FILE SHARING INSTALL
sudo apt-get install samba samba-common python-glade2 system-config-samba Install SambaĬheck if the Samba installation was successful. Run next command to install Samba on Ubuntu.

The output should be like below: Enable File-sharing and Network Discovery Step 4 – Install Samba on UbuntuĮnsure that your Ubuntu updated. Netsh advfirewall firewall set rule group="Network Discovery" new enable=Yes netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes Step 3 – Enable File Sharing on WindowsĮnable File Sharing on Windows, open cmd with administrator privileges and run the next two commands. net config workstation Windows Current DomainĪs you can see from the previous screenshot, the Windows domain is WORKGROUP.

notepad C:\\Windows\System32\drivers\etc\hosts Windows Hosts File Step 2 – Configure domainsīoth machines must be in the same domain, check the default Windows workstation domain using the next command. Also, add a record for your Ubuntu IP and hostname. On Windows, put your machine IP and hostname. Also, add a record for the Windows IP and hostname. On Ubuntu, put your Ubuntu IP and hostname in the /etc/hosts file. However, first we need to prepare our environment as follows: Step 1 – Setting up Ubuntu and Windows Hosts
SET UP NETWORK FILE SHARING HOW TO
This tutorial guides you on how to install and configure Samba, to enable file sharing between Ubuntu and Windows. Samba is a opensource tool that can help you to share the files and printer across cross platforms including Linux, Windows, and Mac over a network.
SET UP NETWORK FILE SHARING MAC OS X
Setting up Samba Server to share files across Linux, Windows, and Mac OS X systems Its only one-time installation with few little configurations and your files should be ready to share across your different machines. In this tutorial, we walk you through the process of setting up a folder in your local network for being able to share its content across Windows and Linux systems. Hence, we suggest to create a folder and then share it with all the systems connected to the local network.
