Install and Configure Samba Server as File Server on Ubuntu Server 12.04

Samba server is best option for sharing files between Ubuntu dan Windows Computer. Samba is a free and open source application re-implementation of SMB/CIFS networking protocol, originally developed by Australian Andrew Tridgell. As of version 3,samba can be used as file and print services between Linux and Windows-Based clients.

Following tutorial is on How to Install Samba Server in Ubuntu Server 12.04 LTS in order to share files with Windows-based clients

Install Samba Server

Log in or ubuntu server, thenn Install the samba package in ubuntu server with following commads:

sudo apt-get instal samba smbfs

Now, samba server ready to configure as file server

Configure Samba Server as File Server

To make samba as file server, edit and configure Samba configuration file, it place on directory /etc/samba/smb.conf. Before editing samba configurationMake a backup of your /etc/samba/smb.conf.

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.original

Replace/Edit options /etc/samba/smb.conf with following configuration below

[global]
 workgroup = Ubuntu Precise
 security = user
[homes]
 comment = Home Directories 
 browseable = yes
 writable = yes
[share] 
 comment = Precise File Server 
 path = /srv/samba/share 
 browsable = yes
 guest ok = no
 read only = no
 create mask = 0755

Create directory for file sharing

sudo mkdir -p /srv/samba/share/
sudo chown nobody.nogroup /srv/samba/share/

create a samba user with following command

sudo adduser precise

Create  a  samba password  for user: precise

sudo smbpasswd -a precise

Tips: if you want convert ubuntu user as samba user, just type the command : sudo smbpasswd -a <Ubuntu User>

Now, restart  samba  server with following command

sudo /etc/init.d/smbd restart

How to Connect Samba Server on Ubuntu and Windows XP

To Connect samba server on ubuntu : Open nautilus Menu File – Connect to Server

Connect to share directory Samba server ubuntu server Install and Configure Samba Server as File Server on Ubuntu Server 12.04

Connect to Home Directory Samba server ubuntu server Install and Configure Samba Server as File Server on Ubuntu Server 12.04

To Connect samba server on Windows XP: Start – Run or press Windows Button + R . see screen shoot below

Access samba server on windows xp Install and Configure Samba Server as File Server on Ubuntu Server 12.04

Reference:

Tags: #File Server #Samba Server #Ubuntu Server #Ubuntu Server 12.04

How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
How to Upgrade Ubuntu Server 12.04 to Ubuntu Server 14.04 LTS
This tutorial will describes how to upgrade
  • PuzzledObserver

    Great, Thanks for the instructions. Can you please clarify for: sudo chown nobody.nogroup /srv/samba/share/
    Q1. What is the purpose and the impact on security of chown nobody.nogroup?
    Q2. What would happen if this step is skipped?
    Q3. Is there any other different way?

    Thanks in advance for any help.

    • öäö

      dumm

Must read×

Top