2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

余っているPCをファイルサーバー化

Last updated at Posted at 2019-11-17

備忘録
環境:ubuntu 16.04

■sambaインストール
sudo apt install samba

■共有するディレクトリの作成
sudo mkdir /home/share

■パーミッション変更
sudo chmod 777 /home/share

■設定ファイルにセクション追加
/etc/samba/smb.conf
に[share]セクションを追加

[share]
path = /home/share
writable = yes
guest ok = yes
guest only = yes
create mode = 0777
directory mode = 0777

■linuxのユーザー追加
useradd ユーザ名 -p パスワード

■sambaのユーザー追加
sudo pdbedit -a ユーザー名

■firewallの無効化
sudo ufw disable

■sambaの再起動
sudo systemctl restart smbd nmbd

■導通確認
サーバー化するPC、接続したいPC、デフォルトゲートウェイそれぞれのIPアドレスを確認し
ping ...
で導通確認

■ネットワークドライブの割り当て
サーバー化するPCのIPアドレスを
\...\share
を割り当て

■user name、passwardを記入し接続完了

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?