How to Install and Configure Samba Server on CentOS 6.2

In this post, i will show you on how to install samba service on CentOS 6.2. This post assumed that you have configure local yum repository.

    [root@centos62 ~]# yum install samba
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: centos.maulvi.net
     * extras: centos.maulvi.net
     * updates: centos.maulvi.net
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package samba.i686 0:3.5.10-114.el6 will be installed
    --> Processing Dependency: samba-winbind-clients = 3.5.10-114.el6 for package: samba-3.5.10-114.el6.i686
    --> Processing Dependency: samba-common = 3.5.10-114.el6 for package: samba-3.5.10-114.el6.i686
    --> Processing Dependency: libtdb.so.1 for package: samba-3.5.10-114.el6.i686
    --> Processing Dependency: libcups.so.2 for package: samba-3.5.10-114.el6.i686
    --> Processing Dependency: libwbclient.so.0 for package: samba-3.5.10-114.el6.i686
    --> Processing Dependency: libtalloc.so.2 for package: samba-3.5.10-114.el6.i686
    --> Running transaction check
    ---> Package cups-libs.i686 1:1.4.2-44.el6 will be installed
    --> Processing Dependency: libavahi-client.so.3 for package: 1:cups-libs-1.4.2-44.el6.i686
    --> Processing Dependency: libtiff.so.3 for package: 1:cups-libs-1.4.2-44.el6.i686
    --> Processing Dependency: libjpeg.so.62 for package: 1:cups-libs-1.4.2-44.el6.i686
    --> Processing Dependency: libavahi-common.so.3 for package: 1:cups-libs-1.4.2-44.el6.i686
    --> Processing Dependency: libpng12.so.0(PNG12_0) for package: 1:cups-libs-1.4.2-44.el6.i686
    --> Processing Dependency: libpng12.so.0 for package: 1:cups-libs-1.4.2-44.el6.i686
    ---> Package libtalloc.i686 0:2.0.1-1.1.el6 will be installed
    ---> Package libtdb.i686 0:1.2.1-3.el6 will be installed
    ---> Package samba-common.i686 0:3.5.10-114.el6 will be installed
    --> Processing Dependency: /usr/bin/pkg-config for package: samba-common-3.5.10-114.el6.i686
    ---> Package samba-winbind-clients.i686 0:3.5.10-114.el6 will be installed
    --> Running transaction check
    ---> Package avahi-libs.i686 0:0.6.25-11.el6 will be installed
    ---> Package libjpeg.i686 0:6b-46.el6 will be installed
    ---> Package libpng.i686 2:1.2.46-1.el6_1 will be installed
    ---> Package libtiff.i686 0:3.9.4-1.el6_0.3 will be installed
    ---> Package pkgconfig.i686 1:0.23-9.1.el6 will be installed
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ====================================================================================================
     Package                      Arch        Version                 Repository                   Size
    ====================================================================================================
    Installing:
     samba                        i686        3.5.10-114.el6          CentOS6.2-Repository        5.0 M
    Installing for dependencies:
     avahi-libs                   i686        0.6.25-11.el6           CentOS6.2-Repository         54 k
     cups-libs                    i686        1:1.4.2-44.el6          CentOS6.2-Repository        324 k
     libjpeg                      i686        6b-46.el6               CentOS6.2-Repository        133 k
     libpng                       i686        2:1.2.46-1.el6_1        CentOS6.2-Repository        184 k
     libtalloc                    i686        2.0.1-1.1.el6           CentOS6.2-Repository         18 k
     libtdb                       i686        1.2.1-3.el6             CentOS6.2-Repository         29 k
     libtiff                      i686        3.9.4-1.el6_0.3         CentOS6.2-Repository        338 k
     pkgconfig                    i686        1:0.23-9.1.el6          CentOS6.2-Repository         67 k
     samba-common                 i686        3.5.10-114.el6          CentOS6.2-Repository         13 M
     samba-winbind-clients        i686        3.5.10-114.el6          CentOS6.2-Repository        1.1 M
    
    Transaction Summary
    ====================================================================================================
    Install      11 Package(s)
    
    Total download size: 20 M
    Installed size: 70 M
    Is this ok [y/N]: y
    Downloading Packages:
    ----------------------------------------------------------------------------------------------------
    Total                                                                10 MB/s |  20 MB     00:02
    Running rpm_check_debug
    Running Transaction Test
    Transaction Test Succeeded
    Running Transaction
      Installing : libtalloc-2.0.1-1.1.el6.i686                                                    1/11
      Installing : libtdb-1.2.1-3.el6.i686                                                         2/11
      Installing : samba-winbind-clients-3.5.10-114.el6.i686                                       3/11
      Installing : libjpeg-6b-46.el6.i686                                                          4/11
      Installing : libtiff-3.9.4-1.el6_0.3.i686                                                    5/11
      Installing : 2:libpng-1.2.46-1.el6_1.i686                                                    6/11
      Installing : 1:pkgconfig-0.23-9.1.el6.i686                                                   7/11
      Installing : samba-common-3.5.10-114.el6.i686                                                8/11
      Installing : avahi-libs-0.6.25-11.el6.i686                                                   9/11
      Installing : 1:cups-libs-1.4.2-44.el6.i686                                                  10/11
      Installing : samba-3.5.10-114.el6.i686                                                      11/11
    
    Installed:
      samba.i686 0:3.5.10-114.el6
    
    Dependency Installed:
      avahi-libs.i686 0:0.6.25-11.el6              cups-libs.i686 1:1.4.2-44.el6
      libjpeg.i686 0:6b-46.el6                     libpng.i686 2:1.2.46-1.el6_1
      libtalloc.i686 0:2.0.1-1.1.el6               libtdb.i686 0:1.2.1-3.el6
      libtiff.i686 0:3.9.4-1.el6_0.3               pkgconfig.i686 1:0.23-9.1.el6
      samba-common.i686 0:3.5.10-114.el6           samba-winbind-clients.i686 0:3.5.10-114.el6
    
    Complete!
    

Set Samba auto after boot up :

    [root@centos62 ~]# chkconfig smb on
    

Start samba service :

    [root@centos62 ~]# service smb start
    Starting SMB services:                                     [  OK  ]
    

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7

This article will explain the steps to reset a lost root password or to reset forgotten root password on Linux RHEL 7 or CentOS 7. Basically, the steps will adding...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *