Sambaパッケージによるインストール
パッケージインストール
Fedora & CentOS 7 ~
$ sudo dnf install samba samba-client
メタデータの期限切れの最終確認: 1:53:47 時間前の 2022年08月20日 10時25分41秒 に実施しました。 パッケージ samba-client-2:4.16.4-0.fc36.x86_64 は既にインストールされています。 依存関係が解決しました。 ==================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ==================================================================================================== インストール: samba x86_64 2:4.16.4-0.fc36 updates 1.5 M 依存関係のインストール: libkadm5 x86_64 1.19.2-11.fc36 updates 82 k lmdb x86_64 0.9.29-3.fc36 fedora 32 k python3-dns noarch 2.2.0-1.fc36 fedora 335 k python3-ldb x86_64 2.5.2-1.fc36 updates 54 k python3-samba x86_64 2:4.16.4-0.fc36 updates 3.3 M python3-samba-dc x86_64 2:4.16.4-0.fc36 updates 342 k python3-talloc x86_64 2.3.4-1.fc36 updates 21 k python3-tdb x86_64 1.4.7-1.fc36 updates 22 k python3-tevent x86_64 0.12.1-1.fc36 updates 19 k samba-common-tools x86_64 2:4.16.4-0.fc36 updates 469 k samba-dc-libs x86_64 2:4.16.4-0.fc36 updates 541 k samba-libs x86_64 2:4.16.4-0.fc36 updates 144 k tdb-tools x86_64 1.4.7-1.fc36 updates 35 k トランザクションの概要 ==================================================================================================== インストール 14 パッケージ ダウンロードサイズの合計: 6.8 M インストール後のサイズ: 32 M これでよろしいですか? [y/N]: y パッケージのダウンロード: (1/14): lmdb-0.9.29-3.fc36.x86_64.rpm 136 kB/s | 32 kB 00:00 (2/14): python3-dns-2.2.0-1.fc36.noarch.rpm 812 kB/s | 335 kB 00:00 (3/14): libkadm5-1.19.2-11.fc36.x86_64.rpm 160 kB/s | 82 kB 00:00 (4/14): python3-ldb-2.5.2-1.fc36.x86_64.rpm 126 kB/s | 54 kB 00:00 (5/14): python3-talloc-2.3.4-1.fc36.x86_64.rpm 16 kB/s | 21 kB 00:01 (6/14): python3-samba-dc-4.16.4-0.fc36.x86_64.rpm 222 kB/s | 342 kB 00:01 (7/14): python3-tdb-1.4.7-1.fc36.x86_64.rpm 64 kB/s | 22 kB 00:00 (8/14): python3-tevent-0.12.1-1.fc36.x86_64.rpm 66 kB/s | 19 kB 00:00 (9/14): python3-samba-4.16.4-0.fc36.x86_64.rpm 1.5 MB/s | 3.3 MB 00:02 (10/14): samba-common-tools-4.16.4-0.fc36.x86_64.rpm 365 kB/s | 469 kB 00:01 (11/14): samba-dc-libs-4.16.4-0.fc36.x86_64.rpm 474 kB/s | 541 kB 00:01 (12/14): samba-4.16.4-0.fc36.x86_64.rpm 959 kB/s | 1.5 MB 00:01 (13/14): samba-libs-4.16.4-0.fc36.x86_64.rpm 549 kB/s | 144 kB 00:00 (14/14): tdb-tools-1.4.7-1.fc36.x86_64.rpm 59 kB/s | 35 kB 00:00 ---------------------------------------------------------------------------------------------------- 合計 1.1 MB/s | 6.8 MB 00:06 トランザクションの確認を実行中 トランザクションの確認に成功しました。 トランザクションのテストを実行中 トランザクションのテストに成功しました。 トランザクションを実行中 準備 : 1/1 インストール中 : samba-libs-2:4.16.4-0.fc36.x86_64 1/14 インストール中 : python3-tdb-1.4.7-1.fc36.x86_64 2/14 インストール中 : python3-talloc-2.3.4-1.fc36.x86_64 3/14 インストール中 : python3-ldb-2.5.2-1.fc36.x86_64 4/14 インストール中 : tdb-tools-1.4.7-1.fc36.x86_64 5/14 インストール中 : python3-tevent-0.12.1-1.fc36.x86_64 6/14 インストール中 : libkadm5-1.19.2-11.fc36.x86_64 7/14 インストール中 : samba-dc-libs-2:4.16.4-0.fc36.x86_64 8/14 インストール中 : python3-dns-2.2.0-1.fc36.noarch 9/14 インストール中 : lmdb-0.9.29-3.fc36.x86_64 10/14 インストール中 : python3-samba-dc-2:4.16.4-0.fc36.x86_64 11/14 インストール中 : python3-samba-2:4.16.4-0.fc36.x86_64 12/14 インストール中 : samba-common-tools-2:4.16.4-0.fc36.x86_64 13/14 インストール中 : samba-2:4.16.4-0.fc36.x86_64 14/14 scriptletの実行中: samba-2:4.16.4-0.fc36.x86_64 14/14 検証 : lmdb-0.9.29-3.fc36.x86_64 1/14 検証 : python3-dns-2.2.0-1.fc36.noarch 2/14 検証 : libkadm5-1.19.2-11.fc36.x86_64 3/14 検証 : python3-ldb-2.5.2-1.fc36.x86_64 4/14 検証 : python3-samba-2:4.16.4-0.fc36.x86_64 5/14 検証 : python3-samba-dc-2:4.16.4-0.fc36.x86_64 6/14 検証 : python3-talloc-2.3.4-1.fc36.x86_64 7/14 検証 : python3-tdb-1.4.7-1.fc36.x86_64 8/14 検証 : python3-tevent-0.12.1-1.fc36.x86_64 9/14 検証 : samba-2:4.16.4-0.fc36.x86_64 10/14 検証 : samba-common-tools-2:4.16.4-0.fc36.x86_64 11/14 検証 : samba-dc-libs-2:4.16.4-0.fc36.x86_64 12/14 検証 : samba-libs-2:4.16.4-0.fc36.x86_64 13/14 検証 : tdb-tools-1.4.7-1.fc36.x86_64 14/14 インストール済み: libkadm5-1.19.2-11.fc36.x86_64 lmdb-0.9.29-3.fc36.x86_64 python3-dns-2.2.0-1.fc36.noarch python3-ldb-2.5.2-1.fc36.x86_64 python3-samba-2:4.16.4-0.fc36.x86_64 python3-samba-dc-2:4.16.4-0.fc36.x86_64 python3-talloc-2.3.4-1.fc36.x86_64 python3-tdb-1.4.7-1.fc36.x86_64 python3-tevent-0.12.1-1.fc36.x86_64 samba-2:4.16.4-0.fc36.x86_64 samba-common-tools-2:4.16.4-0.fc36.x86_64 samba-dc-libs-2:4.16.4-0.fc36.x86_64 samba-libs-2:4.16.4-0.fc36.x86_64 tdb-tools-1.4.7-1.fc36.x86_64 完了しました!
CentOS 6
$ sudo yum install samba samba-client
サービス自動起動設定
Fedora & CentOS 7 ~
- サービス自動起動設定を行う。
$ sudo systemctl enable smb.service $ sudo systemctl enable nmb.service
- サービス自動起動設定を確認する。
$ systemctl -a | grep [sn]mb nmb.service loaded active running Samba NMB Daemon smb.service loaded active running Samba SMB Daemon
CentOS 6
- サービス自動起動設定を行う。
$ sudo chkconfig smb on $ sudo chkconfig nmb on
- サービス自動起動設定を確認する。
$ 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
$ sudo firewall-cmd --reload
success
サービスの起動
Fedora & CentOS 7 ~
$ sudo systemctl start smb.service $ sudo systemctl start nmb.service
CentOS 6
$ sudo service smb start $ sudo service nmb start