Error: samba4-common conflicts with samba-common-3.6.9-167.el6_5.x86_64
Fresh install of rhel 6.5
then
yum -y update
yum -y install samba samba-client samba-common samba-winbind samba-winbind-clients
then I get
--> Running transaction check
---> Package samba4-common.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
---> Package samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
--> Processing Conflict: samba4-common-4.0.0-60.el6_5.rc4.x86_64 conflicts samba-common < 3.9.9
--> Finished Dependency Resolution
Error: samba4-common conflicts with samba-common-3.6.9-167.el6_5.x86_64
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
yum -y --skip-broken install samba samba-client samba-common samba-winbind samba-winbind-clients
then I get
--> Running transaction check
---> Package samba4-common.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
---> Package samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
--> Processing Conflict: samba4-common-4.0.0-60.el6_5.rc4.x86_64 conflicts samba-common < 3.9.9
Packages skipped because of dependency problems:
samba4-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
samba4-common-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
samba4-libs-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
then
rpm -qa| grep samba
samba-winbind-clients-3.6.9-167.el6_5.x86_64
samba-client-3.6.9-167.el6_5.x86_64
samba-common-3.6.9-167.el6_5.x86_64
samba-winbind-3.6.9-167.el6_5.x86_64
then
yum remove samba-common-*
Running Transaction
Erasing : samba-client-3.6.9-167.el6_5.x86_64 1/4
Erasing : samba-winbind-3.6.9-167.el6_5.x86_64 2/4
Erasing : samba-common-3.6.9-167.el6_5.x86_64 3/4
Erasing : samba-winbind-clients-3.6.9-167.el6_5.x86_64 4/4
rhel-6-desktop-rpms/productid | 1.7 kB 00:00
Verifying : samba-common-3.6.9-167.el6_5.x86_64 1/4
Verifying : samba-winbind-clients-3.6.9-167.el6_5.x86_64 2/4
Verifying : samba-client-3.6.9-167.el6_5.x86_64 3/4
Verifying : samba-winbind-3.6.9-167.el6_5.x86_64 4/4
Removed:
samba-common.x86_64 0:3.6.9-167.el6_5
Dependency Removed:
samba-client.x86_64 0:3.6.9-167.el6_5 samba-winbind.x86_64 0:3.6.9-167.el6_5 samba-winbind-clients.x86_64 0:3.6.9-167.el6_5
Complete!
then
[root@ece211-2517 ~]# rpm -qa| grep samba
[root@ece211-2517 ~]#
then
[root@ece211-2517 ~]# yum -y --skip-broken install samba samba-client samba-common samba-winbind samba-winbind-clients
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-client-rhev-agent-rpms | 3.1 kB 00:00
rhel-6-desktop-rpms | 3.7 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba-client.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-common.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-winbind.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-winbind-clients.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba4.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
--> Processing Dependency: samba4-libs = 4.0.0-60.el6_5.rc4 for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: samba4-common = 4.0.0-60.el6_5.rc4 for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libxattr_tdb.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libwbclient.so.0(WBCLIENT_0.9)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libutil_tdb.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libutil_reg.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libtevent-util.so.0(TEVENT_UTIL_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbregistry.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbd_shim.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbd_base.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbconf.so.0(SMBCONF_0)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmb_transport.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsecrets3.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba3-util.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-util.so.0(SAMBA_UTIL_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-sockets.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-security.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-hostconfig.so.0(SAMBA_HOSTCONFIG_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libreplace.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libpopt_samba3.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libpdb.so.0(PDB_0)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr.so.0(NDR_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-standard.so.0(NDR_STANDARD_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-samba.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-nbt.so.0(NDR_NBT_0.0.1)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: liblibsmb.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libgse.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: liberrors.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libdbwrap.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcliauth.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli_smb_common.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli_cldap.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli-nbt.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libauth.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libCHARSET3.so(SAMBA_4.0.0RC4)(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libxattr_tdb.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libutil_tdb.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libutil_reg.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libtevent-util.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbregistry.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbd_shim.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbd_base.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmbconf.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsmb_transport.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsecrets3.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba3-util.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-util.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-sockets.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-security.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libsamba-hostconfig.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libreplace.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libpopt_samba3.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libpdb.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-standard.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-samba.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libndr-nbt.so.0()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: liblibsmb.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libgse.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: liberrors.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libdbwrap.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcliauth.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli_smb_common.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli_cldap.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libcli-nbt.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libauth.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Processing Dependency: libCHARSET3.so()(64bit) for package: samba4-4.0.0-60.el6_5.rc4.x86_64
--> Running transaction check
---> Package samba4-common.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
---> Package samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
--> Processing Conflict: samba4-common-4.0.0-60.el6_5.rc4.x86_64 conflicts samba-common < 3.9.9
--> Running transaction check
---> Package samba4.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
---> Package samba4-common.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
---> Package samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4 will be installed
--> Running transaction check
---> Package samba-client.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-common.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-winbind.x86_64 0:3.6.9-167.el6_5 will be installed
---> Package samba-winbind-clients.x86_64 0:3.6.9-167.el6_5 will be installed
--> Finished Dependency Resolution
Packages skipped because of dependency problems:
samba4-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
samba4-common-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
samba4-libs-4.0.0-60.el6_5.rc4.x86_64 from rhel-6-desktop-rpms
Dependencies Resolved
===================================================================================================================================================
Package Arch Version Repository Size
Installing:
samba-client x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 11 M
samba-common x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 10 M
samba-winbind x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 2.1 M
samba-winbind-clients x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 2.0 M
Skipped (dependency problems):
samba4 x86_64 4.0.0-60.el6_5.rc4 rhel-6-desktop-rpms 359 k
samba4-common x86_64 4.0.0-60.el6_5.rc4 rhel-6-desktop-rpms 611 k
samba4-libs x86_64 4.0.0-60.el6_5.rc4 rhel-6-desktop-rpms 4.0 M
Transaction Summary
Install 4 Package(s)
Total download size: 25 M
Installed size: 89 M
Downloading Packages:
(1/4): samba-client-3.6.9-167.el6_5.x86_64.rpm | 11 MB 00:04
(2/4): samba-common-3.6.9-167.el6_5.x86_64.rpm | 10 MB 00:03
(3/4): samba-winbind-3.6.9-167.el6_5.x86_64.rpm | 2.1 MB 00:01
(4/4): samba-winbind-clients-3.6.9-167.el6_5.x86_64.rpm | 2.0 MB 00:01
Total 2.0 MB/s | 25 MB 00:12
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba-common-3.6.9-167.el6_5.x86_64 1/4
Installing : samba-winbind-clients-3.6.9-167.el6_5.x86_64 2/4
Installing : samba-winbind-3.6.9-167.el6_5.x86_64 3/4
Installing : samba-client-3.6.9-167.el6_5.x86_64 4/4
Verifying : samba-winbind-3.6.9-167.el6_5.x86_64 1/4
Verifying : samba-winbind-clients-3.6.9-167.el6_5.x86_64 2/4
Verifying : samba-common-3.6.9-167.el6_5.x86_64 3/4
Verifying : samba-client-3.6.9-167.el6_5.x86_64 4/4
Installed:
samba-client.x86_64 0:3.6.9-167.el6_5 samba-common.x86_64 0:3.6.9-167.el6_5 samba-winbind.x86_64 0:3.6.9-167.el6_5
samba-winbind-clients.x86_64 0:3.6.9-167.el6_5
Skipped (dependency problems):
samba4.x86_64 0:4.0.0-60.el6_5.rc4 samba4-common.x86_64 0:4.0.0-60.el6_5.rc4 samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4
Complete!
I can't install samba on rhel 6.5
Responses
samba4 packages included in RHEL6 are only included to provide libraries to other components, they do not provide complete samba4 installation.
What type of install did you do of the RHEL 6.5 server? was it 'Everything' ?
My suggested fix is to remove samba4-common to resolve the conflict.
yum remove samba4-common samba4-client samba4-libs
Then install the 3.x release
yum install samba
Same problem here after fresh install:
I can't install samba on rhel 6.5
Suggested fix dosnt help.
Please anyone.
Hello Frank,
Why do you want/need to install samba (version3) and samba4 (version4) on the same server?
Even if you would manage to do so, only one configuration would work without creating a complicated configuration.
The installation errors you get are common, for these double version installation is not supported.
If you really need this double version installation you have to open a support case at https://access.redhat.com
Kind regards,
Jan Gerrit Kootstra
As mentioned in my above post, even if you did get both installed, the Samba4 shipped with RHEL 6 isn't a fully functioning Samba implementation it's merely there to provide libraries to other components.
I believe where people get tripped up is when they install all packages and Samba4 ends up taking precedence over Samba3 but in RHEL6 Samba4 doesn't actually provide full Samba functionality.
Hi
Well, I think I have the same problem as Frank.
The installation of Rhel 6.5 desktop installs double Samba version:
kim@redhat6 ~]$ rpm -qa | grep samba
samba4-libs-4.0.0-60.el6_5.rc4.x86_64
samba-common-3.6.9-167.el6_5.x86_64
samba-winbind-clients-3.6.9-167.el6_5.x86_64
samba-winbind-3.6.9-167.el6_5.x86_64
samba-client-3.6.9-167.el6_5.x86_64
Regards Kim
It's interesting because you already have the Samba 3 version of samba-common installed, what error are you getting?
From your rpm output can I suggest (for a clean install)
Remove what you have:
yum remove samba4-libs samba-common samba-winbind-clients samba-winbind samba-client
Install just Samba 3 from scratch
yum install samba
Let me know if you get any yum errors doing these steps!
Removing:
yum remove samba4-libs samba-common samba-winbind-clients samba-winbind samba-client
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
Removing:
samba-client x86_64 3.6.9-167.el6_5 @rhel-6-desktop-rpms 39 M
samba-common x86_64 3.6.9-167.el6_5 @rhel-6-desktop-rpms 36 M
samba-winbind x86_64 3.6.9-167.el6_5 @rhel-6-desktop-rpms 7.7 M
samba-winbind-clients x86_64 3.6.9-167.el6_5 @rhel-6-desktop-rpms 6.4 M
samba4-libs x86_64 4.0.0-60.el6_5.rc4 @rhel-6-desktop-rpms 16 M
Removing for dependencies:
samba4-devel x86_64 4.0.0-60.el6_5.rc4 @rhel-6-desktop-rpms 1.5 M
Transaction Summary
Remove 6 Package(s)
Installed size: 106 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Erasing : samba4-devel-4.0.0-60.el6_5.rc4.x86_64 1/6
Erasing : samba-client-3.6.9-167.el6_5.x86_64 2/6
Erasing : samba4-libs-4.0.0-60.el6_5.rc4.x86_64 3/6
Erasing : samba-common-3.6.9-167.el6_5.x86_64 4/6
advarsel: /etc/samba/smb.conf gemt som /etc/samba/smb.conf.rpmsave
Erasing : samba-winbind-clients-3.6.9-167.el6_5.x86_64 5/6
Erasing : samba-winbind-3.6.9-167.el6_5.x86_64 6/6
Verifying : samba4-devel-4.0.0-60.el6_5.rc4.x86_64 1/6
Verifying : samba4-libs-4.0.0-60.el6_5.rc4.x86_64 2/6
Verifying : samba-winbind-3.6.9-167.el6_5.x86_64 3/6
Verifying : samba-winbind-clients-3.6.9-167.el6_5.x86_64 4/6
Verifying : samba-common-3.6.9-167.el6_5.x86_64 5/6
Verifying : samba-client-3.6.9-167.el6_5.x86_64 6/6
Removed:
samba-client.x86_64 0:3.6.9-167.el6_5 samba-common.x86_64 0:3.6.9-167.el6_5
samba-winbind.x86_64 0:3.6.9-167.el6_5 samba-winbind-clients.x86_64 0:3.6.9-167.el6_5
samba4-libs.x86_64 0:4.0.0-60.el6_5.rc4
Dependency Removed:
samba4-devel.x86_64 0:4.0.0-60.el6_5.rc4
Complete!
Install just Samba 3 from scratch:
yum install samba-common
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is receiving updates from Red Hat Subscription Management.
rhel-6-desktop-rpms | 3.7 kB 00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba-common.x86_64 0:3.6.9-167.el6_5 will be installed
--> Processing Dependency: samba-winbind-clients = 3.6.9-167.el6_5 for package: samba-common-3.6.9-167.el6_5.x86_64
--> Processing Dependency: libwbclient.so.0()(64bit) for package: samba-common-3.6.9-167.el6_5.x86_64
--> Running transaction check
---> Package samba-winbind-clients.x86_64 0:3.6.9-167.el6_5 will be installed
--> Processing Dependency: samba-winbind = 3.6.9-167.el6_5 for package: samba-winbind-clients-3.6.9-167.el6_5.x86_64
--> Running transaction check
---> Package samba-winbind.x86_64 0:3.6.9-167.el6_5 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================
Package Arch Version Repository Size
Installing:
samba-common x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 10 M
Installing for dependencies:
samba-winbind x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 2.1 M
samba-winbind-clients x86_64 3.6.9-167.el6_5 rhel-6-desktop-rpms 2.0 M
Transaction Summary
Install 3 Package(s)
Total download size: 14 M
Installed size: 50 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): samba-common-3.6.9-167.el6_5.x86_64.rpm | 10 MB 00:02
(2/3): samba-winbind-3.6.9-167.el6_5.x86_64.rpm | 2.1 MB 00:01
(3/3): samba-winbind-clients-3.6.9-167.el6_5.x86_64.rpm | 2.0 MB 00:01
Total 1.9 MB/s | 14 MB 00:07
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba-winbind-clients-3.6.9-167.el6_5.x86_64 1/3
Installing : samba-common-3.6.9-167.el6_5.x86_64 2/3
Installing : samba-winbind-3.6.9-167.el6_5.x86_64 3/3
Verifying : samba-common-3.6.9-167.el6_5.x86_64 1/3
Verifying : samba-winbind-clients-3.6.9-167.el6_5.x86_64 2/3
Verifying : samba-winbind-3.6.9-167.el6_5.x86_64 3/3
Installed:
samba-common.x86_64 0:3.6.9-167.el6_5
Dependency Installed:
samba-winbind.x86_64 0:3.6.9-167.el6_5 samba-winbind-clients.x86_64 0:3.6.9-167.el6_5
Complete!
Then again if i run:
[kim@redhat6 ~]$ rpm -qa | grep samba
samba4-pidl-4.0.0-60.el6_5.rc4.x86_64
samba-winbind-clients-3.6.9-167.el6_5.x86_64
samba-common-3.6.9-167.el6_5.x86_64
samba4-dc-libs-4.0.0-60.el6_5.rc4.x86_64
samba-winbind-3.6.9-167.el6_5.x86_64
samba4-dc-4.0.0-60.el6_5.rc4.x86_64
And this one:
[kim@redhat6 ~]$service smb start
smb: unknown service
Regards Kim
I then tried to remove the Samba4 parts:
samba4-pidl-4.0.0-60.el6_5.rc4.x86_64
samba4-dc-libs-4.0.0-60.el6_5.rc4.x86_64
samba4-dc-4.0.0-60.el6_5.rc4.x86_64
Still "yum install samba-common" looks to install correct,
but still smb/nmb service is unknown.
Then I tried installer from this page:
http://rpm.pbone.net/index.php3/stat/4/idpl/25012548/dir/centos_6/com/samba-3.6.9-167.el6_5.x86_64.rpm.html
Bingo:
[kim@redhat6 ~]$ sudo service smb start
[sudo] password for kim:
Starter SMB-tjenester: [ O.k. ]
[kim@redhat6 ~]$
Regards Kim
KIm,
Apologies, the "Install just Samba 3 from scratch" should have been 'samba' not 'samba-common', I wasn't near a server when I wrote the example (I have fixed my original post for anyone else reading it)
After removing all samba components (to clear out Samba 4 that you aren't using) just install the 'samba' package, this will install Samba 3 and no Samba 4 components.
yum install samba
There is no need to go an fetch CentOS packages from another repository, these are all available in the repo. I would suggest reinstalling your Samba using the samba package from the Red Hat repository.
This is on Red Hat 6.4
[root@server64 ~]# rpm -qa | grep samba
[root@server64 ~]# yum install samba -y
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package samba.x86_64 0:3.6.9-151.el6 will be installed
--> Processing Dependency: samba-winbind-clients = 3.6.9-151.el6 for package: samba-3.6.9-151.el6.x86_64
--> Processing Dependency: samba-common = 3.6.9-151.el6 for package: samba-3.6.9-151.el6.x86_64
--> Processing Dependency: libwbclient.so.0()(64bit) for package: samba-3.6.9-151.el6.x86_64
--> Running transaction check
---> Package samba-common.x86_64 0:3.6.9-151.el6 will be installed
---> Package samba-winbind-clients.x86_64 0:3.6.9-151.el6 will be installed
--> Processing Dependency: samba-winbind = 3.6.9-151.el6 for package: samba-winbind-clients-3.6.9-151.el6.x86_64
--> Running transaction check
---> Package samba-winbind.x86_64 0:3.6.9-151.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================================================================
Installing:
samba x86_64 3.6.9-151.el6 rhel64 5.0 M
Installing for dependencies:
samba-common x86_64 3.6.9-151.el6 rhel64 10 M
samba-winbind x86_64 3.6.9-151.el6 rhel64 2.2 M
samba-winbind-clients x86_64 3.6.9-151.el6 rhel64 2.0 M
Transaction Summary
====================================================================================================================================================================================
Install 4 Package(s)
Total download size: 19 M
Installed size: 68 M
Downloading Packages:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 160 MB/s | 19 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : samba-winbind-3.6.9-151.el6.x86_64 1/4
Installing : samba-winbind-clients-3.6.9-151.el6.x86_64 2/4
Installing : samba-common-3.6.9-151.el6.x86_64 3/4
Installing : samba-3.6.9-151.el6.x86_64 4/4
Verifying : samba-winbind-clients-3.6.9-151.el6.x86_64 1/4
Verifying : samba-winbind-3.6.9-151.el6.x86_64 2/4
Verifying : samba-3.6.9-151.el6.x86_64 3/4
Verifying : samba-common-3.6.9-151.el6.x86_64 4/4
Installed:
samba.x86_64 0:3.6.9-151.el6
Dependency Installed:
samba-common.x86_64 0:3.6.9-151.el6 samba-winbind.x86_64 0:3.6.9-151.el6 samba-winbind-clients.x86_64 0:3.6.9-151.el6
Complete!
[root@server64 ~]# service smb start
Starting SMB services: [ OK ]
[root@server64 ~]# rpm -qa | grep samba
samba-common-3.6.9-151.el6.x86_64
samba-3.6.9-151.el6.x86_64
samba-winbind-3.6.9-151.el6.x86_64
samba-winbind-clients-3.6.9-151.el6.x86_64
This works for me:
RHEL & CentOS 6.5 – Small Samba Server in Workgroup:
Set SELINUX=disabled in config file and reboot:
[kim@redhat6 ~]$ sudo nano /etc/selinux/config
Remove any installed Samba versions from installation! (Well, If there are any)
[kim@redhat6 ~]$ sudo yum remove samba4-libs samba-common samba-winbind-clients samba-winbind samba-client
[kim@redhat6 ~]$ sudo yum remove samba4-pidl-4.0.0-60.el6_5.rc4.x86_64
[kim@redhat6 ~]$ sudo yum remove samba4-dc-libs-4.0.0-60.el6_5.rc4.x86_64
[kim@redhat6 ~]$ sudo yum remove samba4-dc-4.0.0-60.el6_5.rc4.x86_64
Then install Samba from scratch:
[kim@redhat6 ~]$ sudo yum install samba
Check Samba version:
[kim@redhat6 ~]$ sudo rpm -qa| grep samba
Adding Samba share, eg.:
[kim@redhat6 ~]$ mkdir /home/kim/Samba
Assign Samba User & password:
[kim@redhat6 ~]$ sudo smbpasswd -a kim
Edit Samba Configuration:
[kim@redhat6 ~]$ sudo nano /etc/samba/smb.conf
- Match Your Workgroup name in smb.conf
- Uncomment Your LAN IP addresses of choice, eg.:
host allow = 127. 192.168.1. 192.168.253.
Then insert last in smb.conf:
[Samba]
comment = RHEL Samba share
path = /home/kim/Samba
available = yes
valid users = kim
read only = no
browseable = yes
public = no
writeable = yes
Save smb.conf and start or restart Samba services:
service smb start
service nmb start
chkconfig smb on
chkconfig nmb on
Check services in menu:
System – Administration – Services:
nmb & smb is running.
Check firewall in menu:
System – Administration – Firewall:
Samba & Samba Client is ok.
Simple test commands:
testparm
smbstatus
Settings, users, shares & rights You decide…
Maybe You want to change Iptables, eg.:
http://troy.jdmz.net/samba/fw/
You are welcome to add any comments.
Regards Kim
Well, I just chanced SELinux to permissive without any permission problems,
so there seems no specific reason to disable SElinux, hmm just a bad habit :)
Do You have any advise or best practice regarding SElinux booleans for Samba.
Thanks for Your time :)
Regards Kim
Quick way to find them is using the following (unfortunately the smbd_anon_write boolean isn't named consistently.. a trap for new players!)
[root@server64 ~]# getsebool -a | grep samba
samba_create_home_dirs --> off
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> off
samba_export_all_rw --> off
samba_portmapper --> off
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
sanlock_use_samba --> off
use_samba_home_dirs --> off
virt_use_samba --> off
[root@server64 ~]# getsebool -a | grep smb
allow_smbd_anon_write --> off
The functions of the booleans are described here:
man samba_selinux
If you want to set a value and make it persist across reboots use the following (-P writes it to policy on disk):
setsebool -P samba_enable_home_dirs=on
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
