Skip to content

Instantly share code, notes, and snippets.

@letsautomatenet
Created October 8, 2023 15:46
Show Gist options
  • Save letsautomatenet/df7a70d9eaad8ae8b9677db79c8107a6 to your computer and use it in GitHub Desktop.
Save letsautomatenet/df7a70d9eaad8ae8b9677db79c8107a6 to your computer and use it in GitHub Desktop.
Install Samba
# 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
@ntxg
Copy link

ntxg commented Mar 14, 2024

wow thix bro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment