Difference between revisions of "Samba Setup"
Jump to navigation
Jump to search
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
=Install Samba= | =Install Samba= | ||
sudo apt-get install samba | sudo apt-get install samba | ||
==Create Directory to be shared== | ==Create Directory to be shared== | ||
sudo mkdir shared | sudo mkdir shared | ||
Line 6: | Line 6: | ||
sudo chmod pi:pi shared2 | sudo chmod pi:pi shared2 | ||
== Edit Samba config file == | == Edit Samba config file == | ||
''' There should be a single space both before and after each of the equal signs''' | |||
sudo nano /etc/samba/smb.conf | sudo nano /etc/samba/smb.conf | ||
[shared] <---- This is the name of the shared folder so change it to whatever the folder is called | [shared] <---- This is the name of the shared folder so change it to whatever the folder is called | ||
Line 20: | Line 21: | ||
==Restart Samba == | ==Restart Samba == | ||
sudo /etc/init.d/samba restart | sudo /etc/init.d/samba restart | ||
''' One Samba has been restarted use this command to check you .conf file for errors''' | |||
testparm |
Latest revision as of 20:22, 8 May 2019
Install Samba
sudo apt-get install samba
sudo mkdir shared
Change ownership
sudo chmod pi:pi shared2
Edit Samba config file
There should be a single space both before and after each of the equal signs
sudo nano /etc/samba/smb.conf [shared] <---- This is the name of the shared folder so change it to whatever the folder is called path = /shared available = yes valid users = pi read only = no browseable = yes public = yes writable = yes create mask = 775 write list = pi bacchas
Restart Samba
sudo /etc/init.d/samba restart
One Samba has been restarted use this command to check you .conf file for errors
testparm