The need to access specific file and folder sharing from other resource such as another host, server or workstation from Linux based operating psystem distribution especially from CLI (Command Line Interface) can be done by using the right tool which can be summoned from the command line.
The command is actually a tool which is called ‘smbclient’. To have the tool installed in the operating system, first of all, we need to be installed samba-client. Below is the process of installing samba client :
1. Make sure that samba-client package exist in the list of package that can be installed. In this context, yum is used as a package manager to install package. The following command is needed to be executed to search the package :
yum search package_name Description : yum : utility or tool used by Redhat and Redhat variant operating system distribution to install, update or remote package or group of package. search : additional parameter in yum tool command to search the package with the name specified after package_name : the name of the package which is the value of the additional search parameter
Since the package name is samba-client below is the command execution in the bash prompt to search the package :
yum search samba-client
This is the real output of the above command execution on searching samba-client using yum package manager :
[root@hostname ]# yum search samba-client Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast Loading mirror speeds from cached hostfile * base: xxxxxxxxx.xxxxxxxxx.xxxxxxxxxxx.xxx * extras: xxxxxxx.xxxxxxxx.xxxxxxxxxxx.xxx * updates: xxxxxxxxxxxx.xxxxxxxxxx.xxxxxxxxxx.xxx * webtatic: xxxxxxxxxxxx.xxxxxxxxxxxx.xxxxxxxxxx.xxx ======================================================================= N/S matched: samba-client =======================================================================samba-client.x86_64 : Samba client programs samba-client-libs.i686 : Samba client libraries samba-client-libs.x86_64 : Samba client libraries Name and summary matches only, use "search all" for everything. [root@hostname ]#
Because there is a positive result from the searching above executed with the help of yum command regarding samba-client package, continue on to the process of the installation as follows :
yum install package_name Decription : yum : tool or utilities used in Linux Redhat or Linux Redhat variant operating system distribution to install, remove, update package or package group. install : additional parameter command to install package or group package package_name : the name of the package which is going to be installed
This is the real output of the above command execution on installing samba-client using yum package manager:
[root@hostname ]# yum install samba-client Loaded plugins: fastestmirror Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 mysql-connectors-community | 2.5 kB 00:00:00 mysql-tools-community | 2.5 kB 00:00:00 mysql56-community | 2.5 kB 00:00:00 pgdg94 | 3.6 kB 00:00:00 updates | 3.4 kB 00:00:00 webtatic | 3.6 kB 00:00:00 (1/7): mysql-tools-community/x86_64/primary_db | 27 kB 00:00:00 (2/7): extras/7/x86_64/primary_db | 160 kB 00:00:00 (3/7): mysql56-community/x86_64/primary_db | 146 kB 00:00:00 (4/7): mysql-connectors-community/x86_64/primary_db | 9.8 kB 00:00:00 (5/7): pgdg94/7/x86_64/primary_db | 179 kB 00:00:01 (6/7): updates/7/x86_64/primary_db | 7.1 MB 00:00:02 (7/7): webtatic/x86_64/primary_db | 129 kB 00:00:03 Loading mirror speeds from cached hostfile * base: xxxxxx.xxxxx.xxxxxx.xxx.xxx * extras: xxxxxxxx.xxxxxx.xxxxxx.xxx.xxx * updates: xxxxxx.xxxxxx.xxxxxxx.xxx.xxx * webtatic: xxxxxxxxx.xxxxx.xxxxxx.xxxx.xxxx Resolving Dependencies --> Running transaction check ---> Package samba-client.x86_64 0:4.2.10-7.el7_2 will be installed --> Processing Dependency: samba-common-libs = 4.2.10-7.el7_2 for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: samba-common = 4.2.10-7.el7_2 for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: samba-common = 4.2.10-7.el7_2 for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: samba-client-libs = 4.2.10-7.el7_2 for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbclient = 4.2.10-7.el7_2 for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-tdb-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-reg-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-cmdline-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtrusts-util-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtevent.so.0(TEVENT_0.9.9)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtevent.so.0(TEVENT_0.9.12)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtevent-util.so.0(TEVENT_UTIL_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtalloc.so.2(TALLOC_2.0.2)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbregistry-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbconf.so.0(SMBCONF_0)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbclient.so.0(SMBCLIENT_0.1.0)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbclient-raw.so.0(SMBCLIENT_RAW_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libserver-role-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsecrets3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamdb-common-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba3-util-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-util.so.0(SAMBA_UTIL_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-sockets-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-security-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-passdb.so.0(SAMBA_PASSDB_0.2.0)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-hostconfig.so.0(SAMBA_HOSTCONFIG_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-debug-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-credentials.so.0(SAMBA_CREDENTIALS_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libreplace-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libregistry.so.0(REGISTRY_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libpopt-samba3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libntdb.so.1(NTDB_0.9)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr.so.0(NDR_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-standard.so.0(NDR_STANDARD_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-samba-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-nbt.so.0(NDR_NBT_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libmsrpc3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibsmb-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibcli-netlogon3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibcli-lsa3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libldbsamba-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libldb.so.1(LDB_0.9.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libgse-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libgensec.so.0(GENSEC_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libevents-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liberrors-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdcerpc-samba-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdcerpc-binding.so.0(DCERPC_BINDING_0.0.1)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdbwrap-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcmdline-credentials-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcliauth-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-spoolss-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-smb-common-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-ldap-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-cldap-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libaddns-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libCHARSET3-samba4.so(SAMBA_4.2.10)(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-tdb-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-reg-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libutil-cmdline-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtrusts-util-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtevent.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtevent-util.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libtalloc.so.2()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbregistry-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbconf.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbclient.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsmbclient-raw.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libserver-role-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsecrets3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamdb-common-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba3-util-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-util.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-sockets-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-security-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-passdb.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-hostconfig.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-debug-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libsamba-credentials.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libreplace-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libregistry.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libpopt-samba3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libntdb.so.1()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-standard.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-samba-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libndr-nbt.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libmsrpc3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibsmb-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibcli-netlogon3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liblibcli-lsa3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libldbsamba-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libldb.so.1()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libgse-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libgensec.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libevents-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: liberrors-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdcerpc-samba-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdcerpc-binding.so.0()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libdbwrap-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcmdline-credentials-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcliauth-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-spoolss-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-smb-common-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-ldap-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcli-cldap-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libarchive.so.13()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libaddns-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libCHARSET3-samba4.so()(64bit) for package: samba-client-4.2.10-7.el7_2.x86_64 --> Running transaction check ---> Package libarchive.x86_64 0:3.1.2-7.el7 will be installed ---> Package libldb.x86_64 0:1.1.25-1.el7_2 will be installed --> Processing Dependency: libtdb(x86-64) >= 1.3.5 for package: libldb-1.1.25-1.el7_2.x86_64 --> Processing Dependency: libtdb.so.1(TDB_1.2.1)(64bit) for package: libldb-1.1.25-1.el7_2.x86_64 --> Processing Dependency: libtdb.so.1()(64bit) for package: libldb-1.1.25-1.el7_2.x86_64 ---> Package libsmbclient.x86_64 0:4.2.10-7.el7_2 will be installed ---> Package libtalloc.x86_64 0:2.1.5-1.el7_2 will be installed ---> Package libtevent.x86_64 0:0.9.26-1.el7_2.1 will be installed ---> Package samba-client-libs.x86_64 0:4.2.10-7.el7_2 will be installed --> Processing Dependency: libwbclient = 4.2.10-7.el7_2 for package: samba-client-libs-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libwbclient.so.0(WBCLIENT_0.9)(64bit) for package: samba-client-libs-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libwbclient.so.0()(64bit) for package: samba-client-libs-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libcups.so.2()(64bit) for package: samba-client-libs-4.2.10-7.el7_2.x86_64 ---> Package samba-common.noarch 0:4.2.10-7.el7_2 will be installed --> Processing Dependency: samba-common-tools = 4.2.10-7.el7_2 for package: samba-common-4.2.10-7.el7_2.noarch ---> Package samba-common-libs.x86_64 0:4.2.10-7.el7_2 will be installed --> Running transaction check ---> Package cups-libs.x86_64 1:1.6.3-22.el7 will be installed ---> Package libtdb.x86_64 0:1.3.8-1.el7_2 will be installed ---> Package libwbclient.x86_64 0:4.2.10-7.el7_2 will be installed ---> Package samba-common-tools.x86_64 0:4.2.10-7.el7_2 will be installed --> Processing Dependency: samba-libs = 4.2.10-7.el7_2 for package: samba-common-tools-4.2.10-7.el7_2.x86_64 --> Running transaction check ---> Package samba-libs.x86_64 0:4.2.10-7.el7_2 will be installed --> Processing Dependency: libpytalloc-util.so.2(PYTALLOC_UTIL_2.0.6)(64bit) for package: samba-libs-4.2.10-7.el7_2.x86_64 --> Processing Dependency: libpytalloc-util.so.2()(64bit) for package: samba-libs-4.2.10-7.el7_2.x86_64 --> Running transaction check ---> Package pytalloc.x86_64 0:2.1.5-1.el7_2 will be installed --> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================== Installing: samba-client x86_64 4.2.10-7.el7_2 updates 497 k Installing for dependencies: cups-libs x86_64 1:1.6.3-22.el7 base 355 k libarchive x86_64 3.1.2-7.el7 base 317 k libldb x86_64 1.1.25-1.el7_2 updates 125 k libsmbclient x86_64 4.2.10-7.el7_2 updates 120 k libtalloc x86_64 2.1.5-1.el7_2 updates 34 k libtdb x86_64 1.3.8-1.el7_2 updates 45 k libtevent x86_64 0.9.26-1.el7_2.1 updates 33 k libwbclient x86_64 4.2.10-7.el7_2 updates 97 k pytalloc x86_64 2.1.5-1.el7_2 updates 14 k samba-client-libs x86_64 4.2.10-7.el7_2 updates 4.3 M samba-common noarch 4.2.10-7.el7_2 updates 273 k samba-common-libs x86_64 4.2.10-7.el7_2 updates 157 k samba-common-tools x86_64 4.2.10-7.el7_2 updates 445 k samba-libs x86_64 4.2.10-7.el7_2 updates 261 k Transaction Summary ============================================================================================================================================== Install 1 Package (+14 Dependent packages) Total download size: 7.0 M Installed size: 23 M Is this ok [y/d/N]: y Downloading packages: (1/15): libsmbclient-4.2.10-7.el7_2.x86_64.rpm | 120 kB 00:00:00 (2/15): libldb-1.1.25-1.el7_2.x86_64.rpm | 125 kB 00:00:00 (3/15): libtdb-1.3.8-1.el7_2.x86_64.rpm | 45 kB 00:00:00 (4/15): libarchive-3.1.2-7.el7.x86_64.rpm | 317 kB 00:00:00 (5/15): libtalloc-2.1.5-1.el7_2.x86_64.rpm | 34 kB 00:00:00 (6/15): libtevent-0.9.26-1.el7_2.1.x86_64.rpm | 33 kB 00:00:00 (7/15): pytalloc-2.1.5-1.el7_2.x86_64.rpm | 14 kB 00:00:00 (8/15): libwbclient-4.2.10-7.el7_2.x86_64.rpm | 97 kB 00:00:00 (9/15): samba-client-4.2.10-7.el7_2.x86_64.rpm | 497 kB 00:00:00 (10/15): samba-common-4.2.10-7.el7_2.noarch.rpm | 273 kB 00:00:00 (11/15): cups-libs-1.6.3-22.el7.x86_64.rpm | 355 kB 00:00:00 (12/15): samba-common-libs-4.2.10-7.el7_2.x86_64.rpm | 157 kB 00:00:00 (13/15): samba-common-tools-4.2.10-7.el7_2.x86_64.rpm | 445 kB 00:00:00 (14/15): samba-libs-4.2.10-7.el7_2.x86_64.rpm | 261 kB 00:00:00 (15/15): samba-client-libs-4.2.10-7.el7_2.x86_64.rpm | 4.3 MB 00:00:00 ---------------------------------------------------------------------------------------------------------------------------------------------- Total 4.6 MB/s | 7.0 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : libtalloc-2.1.5-1.el7_2.x86_64 1/15 Installing : libtevent-0.9.26-1.el7_2.1.x86_64 2/15 Installing : libtdb-1.3.8-1.el7_2.x86_64 3/15 Installing : libldb-1.1.25-1.el7_2.x86_64 4/15 Installing : pytalloc-2.1.5-1.el7_2.x86_64 5/15 Installing : 1:cups-libs-1.6.3-22.el7.x86_64 6/15 Installing : samba-libs-4.2.10-7.el7_2.x86_64 7/15 Installing : samba-common-tools-4.2.10-7.el7_2.x86_64 8/15 Installing : samba-common-4.2.10-7.el7_2.noarch 9/15 Installing : libwbclient-4.2.10-7.el7_2.x86_64 10/15 Installing : samba-client-libs-4.2.10-7.el7_2.x86_64 11/15 Installing : samba-common-libs-4.2.10-7.el7_2.x86_64 12/15 Installing : libsmbclient-4.2.10-7.el7_2.x86_64 13/15 Installing : libarchive-3.1.2-7.el7.x86_64 14/15 Installing : samba-client-4.2.10-7.el7_2.x86_64 15/15 Verifying : libtalloc-2.1.5-1.el7_2.x86_64 1/15 Verifying : libtdb-1.3.8-1.el7_2.x86_64 2/15 Verifying : samba-common-libs-4.2.10-7.el7_2.x86_64 3/15 Verifying : samba-client-4.2.10-7.el7_2.x86_64 4/15 Verifying : libldb-1.1.25-1.el7_2.x86_64 5/15 Verifying : samba-client-libs-4.2.10-7.el7_2.x86_64 6/15 Verifying : libarchive-3.1.2-7.el7.x86_64 7/15 Verifying : pytalloc-2.1.5-1.el7_2.x86_64 8/15 Verifying : samba-libs-4.2.10-7.el7_2.x86_64 9/15 Verifying : samba-common-tools-4.2.10-7.el7_2.x86_64 10/15 Verifying : samba-common-4.2.10-7.el7_2.noarch 11/15 Verifying : libsmbclient-4.2.10-7.el7_2.x86_64 12/15 Verifying : libwbclient-4.2.10-7.el7_2.x86_64 13/15 Verifying : libtevent-0.9.26-1.el7_2.1.x86_64 14/15 Verifying : 1:cups-libs-1.6.3-22.el7.x86_64 15/15 Installed: samba-client.x86_64 0:4.2.10-7.el7_2 Dependency Installed: cups-libs.x86_64 1:1.6.3-22.el7 libarchive.x86_64 0:3.1.2-7.el7 libldb.x86_64 0:1.1.25-1.el7_2 libsmbclient.x86_64 0:4.2.10-7.el7_2 libtalloc.x86_64 0:2.1.5-1.el7_2 libtdb.x86_64 0:1.3.8-1.el7_2 libtevent.x86_64 0:0.9.26-1.el7_2.1 libwbclient.x86_64 0:4.2.10-7.el7_2 pytalloc.x86_64 0:2.1.5-1.el7_2 samba-client-libs.x86_64 0:4.2.10-7.el7_2 samba-common.noarch 0:4.2.10-7.el7_2 samba-common-libs.x86_64 0:4.2.10-7.el7_2 samba-common-tools.x86_64 0:4.2.10-7.el7_2 samba-libs.x86_64 0:4.2.10-7.el7_2 Complete! [root@hostname ]#
That is sure a long output display of samba client installation progress. But gladly the process has been successfully carried out. It can be tested by executing the command below :
user@hostname:~$ smbclient WARNING: The "syslog" option is deprecated Usage: smbclient [-?EgBVNkPeC] [-?|--help] [--usage] [-R|--name-resolve=NAME-RESOLVE-ORDER] [-M|--message=HOST] [-I|--ip-address=IP] [-E|--stderr] [-L|--list=HOST] [-m|--max-protocol=LEVEL] [-T|--tar=<c|x>IXFqgbNan] [-D|--directory=DIR] [-c|--command=STRING] [-b|--send-buffer=BYTES] [-t|--timeout=SECONDS] [-p|--port=PORT] [-g|--grepable] [-B|--browse] [-d|--debuglevel=DEBUGLEVEL] [-s|--configfile=CONFIGFILE] [-l|--log-basename=LOGFILEBASE] [-V|--version] [--option=name=value] [-O|--socket-options=SOCKETOPTIONS] [-n|--netbiosname=NETBIOSNAME] [-W|--workgroup=WORKGROUP] [-i|--scope=SCOPE] [-U|--user=USERNAME] [-N|--no-pass] [-k|--kerberos] [-A|--authentication-file=FILE] [-S|--signing=on|off|required] [-P|--machine-pass] [-e|--encrypt] [-C|--use-ccache] [--pw-nt-hash] service <password> user@hostname:~$
Below is the usage of using one of the command available after installing samba-client which is needed to look for available File or Printer Sharing on the network. This is the command pattern :
smbclient -L //xxx.xxx.xxx.xxx/share_name -U username Description : smbclient : command which is actually used to access file and printer sharing resource defined either in Windows file and folder sharing or samba Unix file and folder sharing. -L : This option allows you to look at the list of services are available on a server. You use it as smbclient -L host and a list should appear. //xxx.xxx.xxx.xxx.xxx : The IP Address of the server which is trying to look at. -U : This option allow you to specify user to be used when connecting to the IP Address for looking specific service or file and folder sharing. . username : The value of the option -U which is the username used to connect to available service or file and folder sharing in the server.
This is a sample of the command’s execution :
root@hostname:~# smbclient -L //xxx.xxx.xxx.xxx -U myguest WARNING: The "syslog" option is deprecated Enter myguest's password: Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] Sharename Type Comment --------- ---- ------- print$ Disk Printer Drivers IPC$ IPC IPC Service (office server (Samba, Ubuntu)) Officejet-100-Mobile-L411 Printer HP Officejet 100 Mobile L411 HP_LaserJet_Professional_P1606dn Printer HP LaserJet Professional P1606dn Domain=[WORKGROUP] OS=[Windows 6.1] Server=[Samba 4.3.9-Ubuntu] Server Comment --------- ------- MARK-DELL39 mark-Dell39 server (Samba, Linux Mint) OFFICE office server (Samba, Ubuntu) Workgroup Master --------- ------- WORKGROUP OFFICE root@hostname:~#
5 thoughts on “Install Samba Client”