The first option provides a username and password for the Samba user in the fstab. You can do this in multiple ways, but I'm going to demonstrate two ways to mount the Samba share at boot in /etc/fstab. Using the text editor of your choice, edit the /etc/fstab file. Let's make that directory mount persistently so it can withstand a reboot. Now that we’ve mounted our share, we can check the mounts with the following command: # df -h You may need to configure SELinux on that directory. I'm going to create a directory under /mnt, but you can use any directory you would like to. Reconnecting with SMB1 for workgroup listing.Ĭreate a directory that we can use as our mount point. If you use the hostname, make sure DNS is working. We can use either the hostname or ip address of the server. Let's check if we can access our shares from the server.
# yum install samba-client samba-common -y On the client machine, install the samba-common and samba-client packages. To access Samba share from Linux clients we need to install a few Samba client packages.
In this article, I will cover how you can access Samba shares from both Linux and Windows clients. The real power of Samba comes when Windows clients can communicate with Linux file servers. In my previous article, Interoperability: Getting started with Samba, I covered installing and configuring Samba shares on a Linux server.
#Add windows user to access samba smbup for free#
Download RHEL 9 for free through the Red Hat Developer program.