Created
January 30, 2020 09:59
-
-
Save spdin/c92cc833f952668961e8e6f91493e58d to your computer and use it in GitHub Desktop.
Install Samba on Ubuntu
This file contains hidden or 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 | |
| #check installation | |
| whereis samba | |
| # output : | |
| # samba: /usr/sbin/samba /usr/lib/samba /etc/samba /usr/share/samba /usr/share/man/man7/samba.7.gz /usr/share/man/man8/samba.8.gz | |
| # edit file | |
| sudo nano /etc/samba/smb.conf | |
| [kvgn-alpha] | |
| comment = needs username and password to access | |
| path = /home/kvgn-alpha/ | |
| browseable = yes | |
| guest ok = no | |
| writable = yes | |
| # restart | |
| sudo service smbd restart | |
| # firewall | |
| sudo ufw allow samba | |
| # set password | |
| sudo smbpasswd -a kvgn-alpha |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment