Difference between revisions of "Install Samba on Ubuntu"
(Created page with "Installing Samba on Ubuntu What is samba? Samba is an easy way to share files over Linux And Windows environment. Samba is presented by samba.org and is an Open Source/Free ...") |
|||
Line 31: | Line 31: | ||
for that add the following to this file: | for that add the following to this file: | ||
− | # | + | # |
− | [global] | + | [global] |
− | workgroup = Workgroup | + | workgroup = Workgroup |
− | server string = My Samba Share %v | + | server string = My Samba Share %v |
− | security = user | + | security = user |
− | map to guest = bad user | + | map to guest = bad user |
− | dns proxy = no | + | dns proxy = no |
− | # | + | # |
− | [ShareFolder] | + | [ShareFolder] |
− | comment = This is a folder accessible from everyone | + | comment = This is a folder accessible from everyone |
− | path = /sharefolder | + | path = /sharefolder |
− | browsable = yes | + | browsable = yes |
− | guest ok = yes | + | guest ok = yes |
− | read only = no | + | read only = no |
− | create mask = 0755 | + | create mask = 0755 |
− | next we need to create the directory that will host the share folder and change the user permissions | + | next we need to create the directory that will host the share folder and change the user permissions |
− | + | ||
− | + |
Revision as of 11:56, 17 May 2014
Installing Samba on Ubuntu
What is samba?
Samba is an easy way to share files over Linux And Windows environment. Samba is presented by samba.org and is an Open Source/Free Software suite that provides seamless file and print services to SMB/CIFS clients.
Installing Samba.
lets update first the repositories.
open a terminal and type the following :
sudo apt-get update
now install samba
sudo apt-get install samba
now lets edit the configuration file of samba, but before that lets backup the initial configuration file.
cd /etc/samba/
sudo mv smb.conf backsmb.conf
Setup public folder:
First we will create the configuration for a share folder accessible from everyone without any user need it
sudo nano smb.conf
for that add the following to this file:
# [global] workgroup = Workgroup server string = My Samba Share %v security = user map to guest = bad user dns proxy = no # [ShareFolder] comment = This is a folder accessible from everyone path = /sharefolder browsable = yes guest ok = yes read only = no create mask = 0755
next we need to create the directory that will host the share folder and change the user permissions