ユーザ用ツール

サイト用ツール


サイドバー

Top

検索タグ

変更履歴

メニュー


linux:samba:pkg_install

Sambaパッケージによるインストール

パッケージインストール

Fedora & CentOS 7 ~

$ sudo dnf install samba samba-client
Fedora 33 - x86_64                                                  5.2 kB/s | 7.0 kB     00:01
Fedora Modular 33 - x86_64                                           15 kB/s | 6.8 kB     00:00
Fedora 33 - x86_64 - Updates                                         14 kB/s | 7.0 kB     00:00
Fedora 33 - x86_64 - Updates                                        348 kB/s | 5.0 MB     00:14
Fedora Modular 33 - x86_64 - Updates                                 14 kB/s | 6.5 kB     00:00
Fedora Modular 33 - x86_64 - Updates                                257 kB/s | 499 kB     00:01
Dependencies resolved.
====================================================================================================
 Package                      Architecture     Version                      Repository         Size
====================================================================================================
Installing:
 samba                        x86_64           2:4.13.9-0.fc33              updates           804 k
 samba-client                 x86_64           2:4.13.9-0.fc33              updates           654 k
Installing dependencies:
 avahi-libs                   x86_64           0.8-7.fc33                   updates            67 k
 cups-libs                    x86_64           1:2.3.3op2-7.fc33            updates           277 k
 libldb                       x86_64           2.2.1-1.fc33                 updates           182 k
 libsmbclient                 x86_64           2:4.13.9-0.fc33              updates            78 k
 libtalloc                    x86_64           2.3.1-5.fc33                 fedora             31 k
 libtdb                       x86_64           1.4.3-5.fc33                 fedora             51 k
 libtevent                    x86_64           0.10.2-5.fc33                fedora             43 k
 liburing                     x86_64           0.7-3.fc33                   updates            25 k
 libwbclient                  x86_64           2:4.13.9-0.fc33              updates            47 k
 samba-client-libs            x86_64           2:4.13.9-0.fc33              updates           5.4 M
 samba-common                 noarch           2:4.13.9-0.fc33              updates           145 k
 samba-common-libs            x86_64           2:4.13.9-0.fc33              updates           101 k
 samba-common-tools           x86_64           2:4.13.9-0.fc33              updates           438 k
 samba-libs                   x86_64           2:4.13.9-0.fc33              updates           124 k
Installing weak dependencies:
 logrotate                    x86_64           3.17.0-3.fc33                fedora             76 k

Transaction Summary
====================================================================================================
Install  17 Packages

Total download size: 8.5 M
Installed size: 30 M
Is this ok [y/N]: y
Downloading Packages:
(1/17): libtalloc-2.3.1-5.fc33.x86_64.rpm                            77 kB/s |  31 kB     00:00
(2/17): libtdb-1.4.3-5.fc33.x86_64.rpm                              124 kB/s |  51 kB     00:00
(3/17): libtevent-0.10.2-5.fc33.x86_64.rpm                          101 kB/s |  43 kB     00:00
(4/17): avahi-libs-0.8-7.fc33.x86_64.rpm                            291 kB/s |  67 kB     00:00
(5/17): logrotate-3.17.0-3.fc33.x86_64.rpm                          219 kB/s |  76 kB     00:00
(6/17): cups-libs-2.3.3op2-7.fc33.x86_64.rpm                        449 kB/s | 277 kB     00:00
(7/17): libsmbclient-4.13.9-0.fc33.x86_64.rpm                       265 kB/s |  78 kB     00:00
(8/17): libldb-2.2.1-1.fc33.x86_64.rpm                              445 kB/s | 182 kB     00:00
(9/17): liburing-0.7-3.fc33.x86_64.rpm                              145 kB/s |  25 kB     00:00
(10/17): libwbclient-4.13.9-0.fc33.x86_64.rpm                       261 kB/s |  47 kB     00:00
(11/17): samba-4.13.9-0.fc33.x86_64.rpm                             471 kB/s | 804 kB     00:01
(12/17): samba-client-4.13.9-0.fc33.x86_64.rpm                      342 kB/s | 654 kB     00:01
(13/17): samba-common-4.13.9-0.fc33.noarch.rpm                      376 kB/s | 145 kB     00:00
(14/17): samba-common-libs-4.13.9-0.fc33.x86_64.rpm                 312 kB/s | 101 kB     00:00
(15/17): samba-libs-4.13.9-0.fc33.x86_64.rpm                        357 kB/s | 124 kB     00:00
(16/17): samba-common-tools-4.13.9-0.fc33.x86_64.rpm                449 kB/s | 438 kB     00:00
(17/17): samba-client-libs-4.13.9-0.fc33.x86_64.rpm                 1.0 MB/s | 5.4 MB     00:05
----------------------------------------------------------------------------------------------------
Total                                                               1.0 MB/s | 8.5 MB     00:08
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                            1/1
  Installing       : libtalloc-2.3.1-5.fc33.x86_64                                             1/17
  Installing       : libtevent-0.10.2-5.fc33.x86_64                                            2/17
  Installing       : libtdb-1.4.3-5.fc33.x86_64                                                3/17
  Installing       : libldb-2.2.1-1.fc33.x86_64                                                4/17
  Installing       : avahi-libs-0.8-7.fc33.x86_64                                              5/17
  Installing       : cups-libs-1:2.3.3op2-7.fc33.x86_64                                        6/17
  Installing       : liburing-0.7-3.fc33.x86_64                                                7/17
  Running scriptlet: logrotate-3.17.0-3.fc33.x86_64                                            8/17
  Installing       : logrotate-3.17.0-3.fc33.x86_64                                            8/17
  Running scriptlet: logrotate-3.17.0-3.fc33.x86_64                                            8/17
Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /usr/lib/systemd/system/logrotate.timer.

  Running scriptlet: samba-common-2:4.13.9-0.fc33.noarch                                       9/17
  Installing       : samba-common-2:4.13.9-0.fc33.noarch                                       9/17
  Running scriptlet: samba-common-2:4.13.9-0.fc33.noarch                                       9/17
  Installing       : libwbclient-2:4.13.9-0.fc33.x86_64                                       10/17
  Installing       : samba-common-libs-2:4.13.9-0.fc33.x86_64                                 11/17
  Installing       : samba-client-libs-2:4.13.9-0.fc33.x86_64                                 12/17
  Installing       : samba-libs-2:4.13.9-0.fc33.x86_64                                        13/17
  Installing       : samba-common-tools-2:4.13.9-0.fc33.x86_64                                14/17
  Installing       : libsmbclient-2:4.13.9-0.fc33.x86_64                                      15/17
  Installing       : samba-client-2:4.13.9-0.fc33.x86_64                                      16/17
  Running scriptlet: samba-client-2:4.13.9-0.fc33.x86_64                                      16/17
  Installing       : samba-2:4.13.9-0.fc33.x86_64                                             17/17
  Running scriptlet: samba-2:4.13.9-0.fc33.x86_64                                             17/17
  Running scriptlet: libwbclient-2:4.13.9-0.fc33.x86_64                                       17/17
  Running scriptlet: samba-2:4.13.9-0.fc33.x86_64                                             17/17
  Verifying        : libtalloc-2.3.1-5.fc33.x86_64                                             1/17
  Verifying        : libtdb-1.4.3-5.fc33.x86_64                                                2/17
  Verifying        : libtevent-0.10.2-5.fc33.x86_64                                            3/17
  Verifying        : logrotate-3.17.0-3.fc33.x86_64                                            4/17
  Verifying        : avahi-libs-0.8-7.fc33.x86_64                                              5/17
  Verifying        : cups-libs-1:2.3.3op2-7.fc33.x86_64                                        6/17
  Verifying        : libldb-2.2.1-1.fc33.x86_64                                                7/17
  Verifying        : libsmbclient-2:4.13.9-0.fc33.x86_64                                       8/17
  Verifying        : liburing-0.7-3.fc33.x86_64                                                9/17
  Verifying        : libwbclient-2:4.13.9-0.fc33.x86_64                                       10/17
  Verifying        : samba-2:4.13.9-0.fc33.x86_64                                             11/17
  Verifying        : samba-client-2:4.13.9-0.fc33.x86_64                                      12/17
  Verifying        : samba-client-libs-2:4.13.9-0.fc33.x86_64                                 13/17
  Verifying        : samba-common-2:4.13.9-0.fc33.noarch                                      14/17
  Verifying        : samba-common-libs-2:4.13.9-0.fc33.x86_64                                 15/17
  Verifying        : samba-common-tools-2:4.13.9-0.fc33.x86_64                                16/17
  Verifying        : samba-libs-2:4.13.9-0.fc33.x86_64                                        17/17

Installed:
  avahi-libs-0.8-7.fc33.x86_64                     cups-libs-1:2.3.3op2-7.fc33.x86_64
  libldb-2.2.1-1.fc33.x86_64                       libsmbclient-2:4.13.9-0.fc33.x86_64
  libtalloc-2.3.1-5.fc33.x86_64                    libtdb-1.4.3-5.fc33.x86_64
  libtevent-0.10.2-5.fc33.x86_64                   liburing-0.7-3.fc33.x86_64
  libwbclient-2:4.13.9-0.fc33.x86_64               logrotate-3.17.0-3.fc33.x86_64
  samba-2:4.13.9-0.fc33.x86_64                     samba-client-2:4.13.9-0.fc33.x86_64
  samba-client-libs-2:4.13.9-0.fc33.x86_64         samba-common-2:4.13.9-0.fc33.noarch
  samba-common-libs-2:4.13.9-0.fc33.x86_64         samba-common-tools-2:4.13.9-0.fc33.x86_64
  samba-libs-2:4.13.9-0.fc33.x86_64

Complete!

CentOS 6

$ sudo yum install samba samba-client

サービス自動起動設定

Fedora & CentOS 7 ~

  1. サービス自動起動設定を行う。
    $ sudo systemctl enable smb.service
    $ sudo systemctl enable nmb.service
  2. サービス自動起動設定を確認する。
    $ systemctl -a | grep [sn]mb
    nmb.service                loaded active running   Samba NMB Daemon
    smb.service                loaded active running   Samba SMB Daemon

CentOS 6

  1. サービス自動起動設定を行う。
    $ sudo chkconfig smb on
    $ sudo chkconfig nmb on
  2. サービス自動起動設定を確認する。
    $ chkconfig --list | grep [sn]mb
    nmb            	0:off	1:off	2:on	3:on	4:on	5:on	6:off
    smb            	0:off	1:off	2:on	3:on	4:on	5:on	6:off

Firewallの設定

Fedora & CentOS 7 ~

$ sudo firewall-cmd --permanent --add-service=samba
success

サービスの起動

Fedora & CentOS 7 ~

$ sudo systemctl start smb.service
$ sudo systemctl start nmb.service

CentOS 6

$ sudo service smb start
$ sudo service nmb start
linux/samba/pkg_install.txt · 最終更新: 2021/11/26 12:06 by ともやん