Created
October 8, 2023 15:46
-
-
Save letsautomatenet/df7a70d9eaad8ae8b9677db79c8107a6 to your computer and use it in GitHub Desktop.
Install Samba
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Samba | |
sudo apt install samba | |
# Add Share to Samba configuration file | |
sudo nano /etc/samba/smb.conf | |
#At the bottom of the file add share details, e.g. | |
[isos] | |
comment = PXE Boot ISOs | |
path = /home/pxe/iventoy-1.0.19/iso | |
read only = no | |
browsable = yes | |
validusers = pxe # separate users by a comma for multiple | |
# CTRL + O, followed by Enter to save. | |
# CTRL + X to exit | |
# Allow Samba through firewall | |
sudo ufw allow samba | |
# Start Samba service | |
sudo service smbd start | |
# Create Samba password for local user | |
sudo smbpasswd -a theUsername | |
# Restart service to apply changes | |
sudo service smbd restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wow thix bro