Unfortunately, this flexibility can lead to the sense that Samba is overly complex. Samba is a highly flexible and configurable system that provides many options for controlling how resources are shared on Windows networks. Most configuration tasks occur within the /etc/samba/smb.conf file. # firewall-cmd -reload Code language: plaintext ( plaintext )īefore starting the Samba service, some configuration steps are necessary to define how the Ubuntu system will appear to Windows systems and the resources to be shared with remote clients. If you are using the Uncomplicated Firewall (ufw) run the following command: # ufw allow samba Code language: plaintext ( plaintext )Īlternatively, if you are using firewalld, run the firewall-cmd command as follows: # firewall-cmd -permanent -add-port= Next, the firewall protecting the Ubuntu system must be configured to allow Samba traffic. To check whether Samba is installed, open a terminal window and run the following command and check for the indicator for each package: # apt -qq list samba-common samba smbclient Code language: plaintext ( plaintext )Īny missing packages can be installed using the apt command-line tool: # apt install samba-common samba smbclient Code language: plaintext ( plaintext ) Configuring the Ubuntu Firewall to Enable Samba Unless you specifically requested that Samba be installed, it is unlikely that you have Samba installed on your system. The default settings used during the Ubuntu installation do not typically install the necessary Samba packages. Buy the full book now in eBook ($24.99) format. You are reading a sample chapter from Ubuntu 22.04 Essentials. On the other hand, Ubuntu resources are shared with Windows systems by installing and configuring the Samba service. Ubuntu accesses Windows resources using the Samba client. Samba allows both Ubuntu resources to be shared with Windows systems and Windows resources to be shared with Ubuntu systems. Once launched, select the Other Locations option in the left-hand navigation panel, followed by the Windows Network icon in the main panel to browse available Windows resources: Figure 21-2 Samba and Samba Client The Files application is located in the dash as highlighted in Figure 21-1: Figure 21-1 Accessing Windows Resources from the GNOME Desktopīefore getting into more details of Samba sharing, it is worth noting that if all you want to do is access Windows shared folders from within the GNOME desktop, then support is already provided within the GNOME Files application. In this chapter, we will look at the steps necessary to share file system resources and printers on an Ubuntu system with remote Windows and Linux systems and to access Windows resources from Ubuntu. In addition to providing integration between Linux and Windows systems, Samba may also provide folder sharing between Linux systems (as an alternative to NFS covered in the previous chapter). This is achieved using a technology called Samba. For an Ubuntu system to serve such resources over a network to a Windows system and vice versa, it must support SMB. Windows systems share resources such as file systems and printers using the Server Message Block (SMB) protocol. Similarly, shared folders and printers residing on Windows systems may also need to be accessible from Ubuntu-based systems. Therefore, it is a common requirement that files on an Ubuntu system be accessible to Linux, UNIX, and Windows-based systems over network connections. It is also common for Ubuntu and Windows systems to be used side by side in networked environments. It is unsurprising, therefore, that Ubuntu can act as a file server. Although Linux has made some inroads into the desktop market, its origins and future are very much server based.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |