・当ブログはアフィリエイト広告を利用しています。

ファイルサーバーの設定

CentOS
この記事は約1分で読めます。
記事内には広告が含まれています。

ただの箱だったServer3号機(としておく)、①DNSサーバーは設定済みで
②ファイルサーバーを設定することに

Sambaをインストール

#yum install samba

/etc/samba/smb.confを設定

workgroup = WORKGROUP を必要に応じ変更

samba用ユーザーを追加

#smbpasswd -a "ユーザー名"

Sambaサービスを有効にする

サービスをスタートし永続的(電源ON時)にサービスをスタート

suで
#systemctl start smb.service
#systemctl start nmb.service
#systemctl enable smb.service
#systemctl enable nmb.service

ファイヤーウォールの設定

#firewall-cmd --permanent --add-service=samba --zone=public
#firewall-cmd --reload

SELinuxの設定

#setsebool -P samba_enable_home_dirs on

これをやらないとホームディレクトリにアクセスできなかった。

設定はとどこおりなく済んだが、SSDは240GBなので、そんなに大量にはデータを保存できない。後々HDDを増設しなければならないかもしれないが、どうゆう風に使おうか?

今現在、ファイルはゼロ

 

コメント

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.Accept or Deny
タイトルとURLをコピーしました