You are on page 1of 28

http://rbgeek.wordpress.

com/2012/04/25/how-to-installsamba-server-on-ubuntu-12-04/

How to install Samba server on Ubuntu 12.04


29 Comments Posted by rbgeek on April 25, 2012 Part 1: Configuring anonymous share with samba server To install the samba package,enter the following command:
sudo apt-get install samba samba-common

Check the version of installed samba software by using this command:


smbd --version

Also install these suggested packages for samba:


sudo apt-get install python-glade2 system-config-samba

Go to your Windows machine and use this command in order to check the WORKGROUP name:
net config workstation

It will show the output, something like this:

Backup the smb.conf file, then delete it and create the new one:
sudo sudo sudo sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.bak rm /etc/samba/smb.conf touch /etc/samba/smb.conf nano /etc/samba/smb.conf

Add this, in your smb.conf file (or change it according to your requirement):
#======================= Global Settings ===================================== [global] workgroup = WORKGROUP server string = Samba Server %v netbios name = ubuntu security = user map to guest = bad user dns proxy = no #============================ Share Definitions ============================== [MyShare] path = /samba/share browsable =yes

writable = yes guest ok = yes read only = no

Save the smb.conf file and restart the service:


sudo service smbd restart

Access the samba share from windows (where ubuntu is the name of my samba server):

wao, we are able to access the samba share successfully

Lets try to create something, inside the share folder:

Error, we cannot create anything inside the share folder

Check the current permission on the samba share:


cd /samba/ ls -l

Change it, in such a way that everyone can read and write it(Check it, that it is allowed in your environment or not):
sudo chmod -R 0777 share ls -l

Try to create something again, inside the share folder:

Verify the newly created file on samba server:


cd share/ ls -l

Part 2: Add and manage users and groups Add a group in your ubuntu server (in my case smbgrp):
sudo addgroup smbgrp

Create a new share, set the permission on the share ,add the user to the samba group and create samba password:
cd /samba/ sudo chown -R arbab:smbgrp secure/ ls -l sudo chmod -R 0770 secure/ ls -l sudo adduser arbab smbgrp sudo smbpasswd -a arbab

Add the newly created samba share in smb.conf file:


[secure] path = /samba/secure valid users = @smbgrp guest ok = no writable = yes

browsable = yes

Restart the samba service and check the syntax error with testparm:
sudo service smbd restart sudo testparm

Testing from Windows Machine:

Verification from Ubuntu server:


cd /samba/secure/ ls -l

Hope this will help you! Please Remember me in your prayers! Enjoy

http://ubuntuserverguide.com/2012/06/install-samba-server-ubuntu-server-1204-lts.html

Install and Configure Samba Server as File Server on Ubuntu Server 12.04
in File Server, How To, Samba Server 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 configuration, Make 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

Access [share] directory

Connect to [Homes] Directory

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

http://www.unixmen.com/howto-install-and-configure-samba-share-in-ubuntu/

Install and Configure Samba share in Ubuntu 13.04 Raring Ringtail , 12.10, 12.04| Howto
Written by Mel Kham on March 11, 2012. Posted in Linux tutorials, Ubuntu

13EmailShare

Updated 05-04-2013: One of the most asked features for Samba is a graphical user interface to help with configuration and management, there are several GUI interfaces to Samba available, for me the most simple and powerful one of these tools is samba server configuration tool. In this post, i will show you how to install and configure samba in Ubuntu 12.10 and 13.04 Raring Ringtail, this work also for previous releases of Ubuntu. Check also our previous post on installation and configuration of samba via command line.

Installing Samba on Ubuntu:


1- Install Samba files First thing we need to do is to install samba, go to Software center in Ubuntu and search for samba then install the package. If you want to install it via terminal then copy this command :
sudo apt-get install samba samba-common

2- Install some dependencies for Configuration tools (don`t forget to install pythonglade2)
sudo apt-get install python-glade2

3- Installing Samba Server configuration Tool : Now install the graphical interface System-config samba
sudo apt-get install system-config-samba

4- Add a Linux/Unix user:


adduser pirat9

5- Make a Linux/Unix password for user pirat9


passwd pirat9

6- Now open samba configuration tool.

7- Add the folder you want to share and setup the permissions access.

- Setup the permissions access

8- Now before to connect to the share, you have to create the samba user :
sudo smbpasswd -a pirat9 New SMB password retype New SMB Password

Now the configuration is done. Tip: You can chose any directory you want to share by right click on the folder directory and open the share options

And activate share:

9- Now, let`s test if samba share is working from another Linux Machine, in my case will try to connect from LinuxMint12 machine to Ubuntu 12.04 machine where we just installed samba, from menu open connect to server and type the details of your Ubuntu machine

12- Connect from windows (XP/Vista/7)

- See more at: http://www.unixmen.com/howto-install-and-configure-samba-share-inubuntu/#sthash.qikJJXxu.dpuf

You might also like