CentOS 6.7 を当初はWebサーバーでインストールし徐々に設定を進めたものの、これがたいへんに面倒だった。
そこで、インストールをデスクトップで行うアプローチに変えてみることにした。無用な機能/あるべきでない機能もインストールしてしまう問題はあるが、ものは試し。
で、機能の追加。以下、引用は server-world.infoさんから。
NTP
http://www.server-world.info/query?os=CentOS_6&p=ntp
じゃぱにーずなので全くわかっちゃいないが、restrictという言葉には「許可する」印象が無いので、この捉え方にはどうにも違和感がある。まるで「すーぱー」において、「ぷらすちっくかいものぶくろは、要求されていません。」のような。
http://ejje.weblio.jp/content/restrict
sshd
デスクトップインストールでもデフォルトで有効だった。
Samba
http://www.server-world.info/query?os=CentOS_6&p=samba&f=1
最初から日本語デスクトップであるので、導入の成り行きもいくらかわかりやすく、ほんのキブン的にだが。それから、will be 更新 とか、更新・整理中・verifing などとちょっと面白くもあり。
[root@localhost cent]# yum -y install samba
読み込んだプラグイン:fastestmirror, refresh-packagekit, security
インストール処理の設定をしています
Loading mirror speeds from cached hostfile
* base: www.ftp.ne.jp
* extras: www.ftp.ne.jp
* updates: www.ftp.ne.jp
base | 3.7 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
依存性の解決をしています
--> トランザクションの確認を実行しています。
---> Package samba.i686 0:3.6.23-24.el6_7 will be インストール
--> 依存性の処理をしています: samba-winbind-clients = 3.6.23-24.el6_7 のパッケージ: samba-3.6.23-24.el6_7.i686
--> 依存性の処理をしています: samba-common = 3.6.23-24.el6_7 のパッケージ: samba-3.6.23-24.el6_7.i686
--> トランザクションの確認を実行しています。
---> Package samba-common.i686 0:3.6.23-20.el6 will be 更新
--> 依存性の処理をしています: samba-common = 3.6.23-20.el6 のパッケージ: samba-client-3.6.23-20.el6.i686
--> 依存性の処理をしています: samba-common = 3.6.23-20.el6 のパッケージ: samba-winbind-3.6.23-20.el6.i686
---> Package samba-common.i686 0:3.6.23-24.el6_7 will be an update
---> Package samba-winbind-clients.i686 0:3.6.23-20.el6 will be 更新
--> 依存性の処理をしています: samba-winbind-clients = 3.6.23-20.el6 のパッケージ: libsmbclient-3.6.23-20.el6.i686
---> Package samba-winbind-clients.i686 0:3.6.23-24.el6_7 will be an update
--> トランザクションの確認を実行しています。
---> Package libsmbclient.i686 0:3.6.23-20.el6 will be 更新
---> Package libsmbclient.i686 0:3.6.23-24.el6_7 will be an update
---> Package samba-client.i686 0:3.6.23-20.el6 will be 更新
---> Package samba-client.i686 0:3.6.23-24.el6_7 will be an update
---> Package samba-winbind.i686 0:3.6.23-20.el6 will be 更新
---> Package samba-winbind.i686 0:3.6.23-24.el6_7 will be an update
--> 依存性解決を終了しました。
依存性を解決しました
================================================================================================================================================
パッケージ アーキテクチャ バージョン リポジトリー 容量
================================================================================================================================================
インストールしています:
samba i686 3.6.23-24.el6_7 updates 5.0 M
依存性関連での更新をします。:
libsmbclient i686 3.6.23-24.el6_7 updates 1.6 M
samba-client i686 3.6.23-24.el6_7 updates 11 M
samba-common i686 3.6.23-24.el6_7 updates 9.9 M
samba-winbind i686 3.6.23-24.el6_7 updates 2.2 M
samba-winbind-clients i686 3.6.23-24.el6_7 updates 2.0 M
トランザクションの要約
================================================================================================================================================
インストール 1 パッケージ
アップグレード 5 パッケージ
総ダウンロード容量: 31 M
パッケージをダウンロードしています:
(1/6): libsmbclient-3.6.23-24.el6_7.i686.rpm | 1.6 MB 00:02
(2/6): samba-3.6.23-24.el6_7.i686.rpm | 5.0 MB 00:06
(3/6): samba-client-3.6.23-24.el6_7.i686.rpm | 11 MB 00:13
(4/6): samba-common-3.6.23-24.el6_7.i686.rpm | 9.9 MB 00:12
(5/6): samba-winbind-3.6.23-24.el6_7.i686.rpm | 2.2 MB 00:02
(6/6): samba-winbind-clients-3.6.23-24.el6_7.i686.rpm | 2.0 MB 00:02
------------------------------------------------------------------------------------------------------------------------------------------------
合計 795 kB/s | 31 MB 00:40
rpm_check_debug を実行しています
トランザクションのテストを実行しています
トランザクションのテストを成功しました
トランザクションを実行しています
更新 : samba-winbind-3.6.23-24.el6_7.i686 1/11
更新 : samba-winbind-clients-3.6.23-24.el6_7.i686 2/11
更新 : samba-common-3.6.23-24.el6_7.i686 3/11
更新 : samba-client-3.6.23-24.el6_7.i686 4/11
インストールしています : samba-3.6.23-24.el6_7.i686 5/11
更新 : libsmbclient-3.6.23-24.el6_7.i686 6/11
整理中 : samba-client-3.6.23-20.el6.i686 7/11
整理中 : libsmbclient-3.6.23-20.el6.i686 8/11
整理中 : samba-common-3.6.23-20.el6.i686 9/11
整理中 : samba-winbind-3.6.23-20.el6.i686 10/11
整理中 : samba-winbind-clients-3.6.23-20.el6.i686 11/11
Verifying : samba-client-3.6.23-24.el6_7.i686 1/11
Verifying : samba-winbind-clients-3.6.23-24.el6_7.i686 2/11
Verifying : libsmbclient-3.6.23-24.el6_7.i686 3/11
Verifying : samba-winbind-3.6.23-24.el6_7.i686 4/11
Verifying : samba-common-3.6.23-24.el6_7.i686 5/11
Verifying : samba-3.6.23-24.el6_7.i686 6/11
Verifying : samba-winbind-clients-3.6.23-20.el6.i686 7/11
Verifying : samba-winbind-3.6.23-20.el6.i686 8/11
Verifying : samba-common-3.6.23-20.el6.i686 9/11
Verifying : samba-client-3.6.23-20.el6.i686 10/11
Verifying : libsmbclient-3.6.23-20.el6.i686 11/11
インストール:
samba.i686 0:3.6.23-24.el6_7
依存性を更新しました:
libsmbclient.i686 0:3.6.23-24.el6_7 samba-client.i686 0:3.6.23-24.el6_7 samba-common.i686 0:3.6.23-24.el6_7
samba-winbind.i686 0:3.6.23-24.el6_7 samba-winbind-clients.i686 0:3.6.23-24.el6_7
完了しました!
[root@localhost cent]#
次に、共有ディレクトリの作成とパーミッションの変更。
[root@localhost ~]# ls /home
cent lost+found
[root@localhost ~]#
[root@localhost ~]# mkdir /home/share
[root@localhost ~]#
[root@localhost ~]# ls /home
cent lost+found share
[root@localhost ~]#
[root@localhost ~]# ls -alF /home
合計 32
drwxr-xr-x. 5 root root 4096 1月 31 15:08 2016 ./
dr-xr-xr-x. 24 root root 4096 1月 31 14:52 2016 ../
drwx------. 31 cent cent 4096 1月 30 23:09 2016 cent/
drwx------. 2 root root 16384 1月 30 01:15 2016 lost+found/
drwxr-xr-x. 2 root root 4096 1月 31 15:08 2016 share/
[root@localhost ~]#
[root@localhost ~]#
[root@localhost ~]# chmod 777 /home/share
[root@localhost ~]#
[root@localhost ~]# ls -alF /home
合計 32
drwxr-xr-x. 5 root root 4096 1月 31 15:08 2016 ./
dr-xr-xr-x. 24 root root 4096 1月 31 14:52 2016 ../
drwx------. 31 cent cent 4096 1月 30 23:09 2016 cent/
drwx------. 2 root root 16384 1月 30 01:15 2016 lost+found/
drwxrwxrwx. 2 root root 4096 1月 31 15:08 2016 share/
[root@localhost ~]#
続いては smb.conf の編集だが、これは長くなりそうなので別エントリで。取り急ぎ日本語訳のドキュメント。
smb.conf(5)
http://www.samba.gr.jp/project/translation/3.5/htmldocs/manpages-3/smb.conf.5.html
オチとしては、設定を始めた当初 samb.confと入力して「あれ!? ない? どこだ???」などと誤3ぶりをやらかしていた。
0 件のコメント:
コメントを投稿