Merge pull request #635 from 13Homer13/linux-backup

Fix for guide for RH's default firewall
This commit is contained in:
StuPleb
2024-11-22 14:14:16 +01:00
committed by GitHub

View File

@@ -71,11 +71,23 @@ Installing Samba
Again, replacing ``$USER`` and entering your Linux password when prompted, not your new SMB password.
#. In case your system is running a firewall by default or due to your own custom configuration, enter this command to allow connections to Samba. If it generates an error, you can safely ignore it:
#. In case your system is running a firewall by default or due to your own custom configuration, enter these commands to allow connections to Samba. If it generates an error, you can safely ignore it:
.. code-block:: bash
.. tabs::
.. group-tab:: Debian-based
.. code-block:: bash
sudo ufw allow Samba
.. group-tab:: RedHat-based
.. code-block:: bash
sudo firewall-cmd --permanent --add-service=samba
sudo firewall-cmd --reload
sudo ufw allow Samba
#. Create a directory to share or choose an existing one and make note of its location (path). For this example, we will call the share ``backup-share`` and its corresponding shared directory will be located at ``/home/$USER/start9-backup``. Replace ``$USER`` with your Linux username below.