文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== Sambaパッケージによるインストール ====== ===== パッケージインストール ===== Fedora & CentOS 7 ~ <WRAP color_term> <WRAP color_command><html><pre> <b class=GRN>$</b> <b class=HIY>sudo</b> dnf install samba samba-client </pre></html></WRAP> <WRAP color_result_long><html><pre> メタデータの期限切れの最終確認: 1:53:47 時間前の 2022年08月20日 10時25分41秒 に実施しました。 パッケージ samba-client-2:4.16.4-0.fc36.x86_64 は既にインストールされています。 依存関係が解決しました。 ==================================================================================================== パッケージ アーキテクチャー バージョン リポジトリー サイズ ==================================================================================================== インストール: <b class=GRN>samba</b> x86_64 2:4.16.4-0.fc36 updates 1.5 M 依存関係のインストール: <b class=GRN>libkadm5</b> x86_64 1.19.2-11.fc36 updates 82 k <b class=GRN>lmdb</b> x86_64 0.9.29-3.fc36 fedora 32 k <b class=GRN>python3-dns</b> noarch 2.2.0-1.fc36 fedora 335 k <b class=GRN>python3-ldb</b> x86_64 2.5.2-1.fc36 updates 54 k <b class=GRN>python3-samba</b> x86_64 2:4.16.4-0.fc36 updates 3.3 M <b class=GRN>python3-samba-dc</b> x86_64 2:4.16.4-0.fc36 updates 342 k <b class=GRN>python3-talloc</b> x86_64 2.3.4-1.fc36 updates 21 k <b class=GRN>python3-tdb</b> x86_64 1.4.7-1.fc36 updates 22 k <b class=GRN>python3-tevent</b> x86_64 0.12.1-1.fc36 updates 19 k <b class=GRN>samba-common-tools</b> x86_64 2:4.16.4-0.fc36 updates 469 k <b class=GRN>samba-dc-libs</b> x86_64 2:4.16.4-0.fc36 updates 541 k <b class=GRN>samba-libs</b> x86_64 2:4.16.4-0.fc36 updates 144 k <b class=GRN>tdb-tools</b> 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 完了しました! </pre></html></WRAP> </WRAP> **CentOS 6**\\ <WRAP color_term> <WRAP color_command><html><pre> $ sudo yum install samba samba-client </pre></html></WRAP> </WRAP> ===== サービス自動起動設定 ===== Fedora & CentOS 7 ~ - サービス自動起動設定を行う。<code> $ sudo systemctl enable smb.service $ sudo systemctl enable nmb.service </code> - サービス自動起動設定を確認する。<code> $ systemctl -a | grep [sn]mb nmb.service loaded active running Samba NMB Daemon smb.service loaded active running Samba SMB Daemon </code> CentOS 6 - サービス自動起動設定を行う。<code> $ sudo chkconfig smb on $ sudo chkconfig nmb on </code> - サービス自動起動設定を確認する。<code> $ 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 </code> ===== Firewallの設定 ===== Fedora & CentOS 7 ~ <WRAP color_term> <WRAP color_command><html><pre> <span style="color:#FF8700"><b>$</b></span> <span style="color:#4E9A06"><u style="text-decoration-style:single">sudo</u></span> <span style="color:#4E9A06">firewall-cmd</span> <span style="color:#75507B">--permanent</span> <span style="color:#75507B">--add-service=samba</span> </pre></html></WRAP> <WRAP color_result><html><pre> success </pre></html></WRAP> <WRAP color_command><html><pre> <span style="color:#FF8700"><b>$</b></span> <span style="color:#4E9A06"><u style="text-decoration-style:single">sudo</u></span> <span style="color:#4E9A06">firewall-cmd</span> <span style="color:#75507B">--reload</span> </pre></html></WRAP> <WRAP color_result><html><pre> success </pre></html></WRAP> </WRAP> ===== サービスの起動 ===== Fedora & CentOS 7 ~ <code> $ sudo systemctl start smb.service $ sudo systemctl start nmb.service </code> CentOS 6 <code> $ sudo service smb start $ sudo service nmb start </code> linux/samba/pkg_install.txt 最終更新: 2024/02/02 23:02by ともやん