![]() ![]() Restart the Samba service sudo systemctl restart smbdĨ. Save the file ( CTRL+X, then press Y to confirm and press Enter).ħ. Valid users = waqar (Only this user can access this folder) Read only = no (It represents that the user accessing this folder would have “write” permission) Path = /home/waqar/example_folder (This is the location of the folder) (This is the display name of this folder in the network) Go to the end of the file by pressing CTRL+V (hold v until you reach the end of the file), then enter the following information about the folder you created in Step 5 that you want to share. Now you have to add the information of the shared folder you just created in the Samba server configuration file. Note: You can access shared folders through Samba users only.Ħ. Tip 2: It is important to note that the name of the Samba user should be the same as the name of the Linux user (in the above example it is “waqar”.) If it is not the same you will get an error message. This output shows that this tutorial is performed in Ubuntu 20.04.3 LTS. In other words, you can attach a printer to your Ubuntu system and print to it from Windows machines present in your network.įollowing are steps that you need to follow to install and configure Samba in Linux:īefore installing the Samba server, check the distribution of Linux. It can also be used to share any printers configured for an Ubuntu system as Samba shared printers. The default configuration file of Samba /etc/samba/smb.conf allows users to view their Ubuntu home directories as a Samba share. In large organizations, each user may have this type of password-protected personal folder, which other users cannot access. It means you have to enter the required user name and password to access the contents of this folder. ![]() In contrast, a password-protected shared folder requires specific user credentials. It requires no password and everyone on the same network can use the shared file or folder. Samba can be used to create two types of shared folders: Password-protected shared folders and Public shared folders.Ī public folder is used to share common documents among all the employees of an organization connected through a network. Similarly, if you want to share printers among Ubuntu systems only, you do not need to use Samba. ![]() In this case, the NFS server would be used for file sharing. However, there is no need for a Samba server if all computers on your network have Ubuntu installed. In such a situation, the sharing of files and printers among different operating systems can be made possible using Samba. ![]() Samba is beneficial when you have a network of computers having different operating systems installed on them (e.g., some computers have Windows, while others have Linux).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |