Last active
June 22, 2019 16:26
-
-
Save agyemanjp/b456fd9b7e9c9af1cf5d70e9db3ebf26 to your computer and use it in GitHub Desktop.
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
sudo apt update | |
sudo apt install samba cifs-utils | |
echo "" | sudo tee -a /etc/samba/smb.conf | |
echo "[Code]" | sudo tee -a /etc/samba/smb.conf | |
echo " comment = CODE FOLDER" | sudo tee -a /etc/samba/smb.conf | |
echo " path = ~/code" | sudo tee -a /etc/samba/smb.conf | |
echo " read only = no" | sudo tee -a /etc/samba/smb.conf | |
# echo " guest ok = yes" | sudo tee -a /etc/samba/smb.conf | |
sudo ufw allow Samba | |
/etc/init.d/smbd restart | |
sudo mkdir -p ~/code | |
sudo chmod 0777 ~/code | |
# Relevant ports | |
# udp 137 | |
# udp 138 | |
# tcp 139 | |
# tcp 445 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment