Wednesday, August 24, 2011

Setup SAMBA server on Ubuntu

Step 1: Installation
#apt-get install samba
Step 2: Configuration
Configuration file : /etc/samba/smb.conf
  • Edit below section
Workgroup = EXAMPLE
Security = user
  • Create a new section at the bottom of the file /etc/samba/smb.conf
[Samba Share]
Comment= Samba  File Server Share
Path=/path to directory
Browsable = yes
Guest ok = yes
Read only = no
Create mask = 0755
Step 3: Create directory and change permissions
#mkdir /path to directoy
#chown  -R nobody:nobody /path to directory
Step 4 : Restart Samba service
#/etc/init.d/samba restart

No comments: