0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linux Mint で Samba

Last updated at Posted at 2024-11-25

インストール

sudo apt-get install samba -y

Sanba パスワード設定

sudo smbpasswd -a miyamo
sudo smbpasswd -e miyamo
ifconfig

で確認。
あらかじめ 権限をあたえておく。

sudo chmod 777 /media/miyamo/Disk1

Config 編集

sudo vim /etc/samba/smb.conf

中身を以下で変更

   interface 192.168.1.0/24 enp4s0

[mint_disk1]
   path = /media/miyamo/Disk1
   available = yes
   read only = no
   browsable = yes
   public = yes
   writable = yes
   quest ok = no

以下を実行

sudo systemctl enable smbd.service
sudo systemctl reload smbd.service
sudo systemctl restart smbd.service

 あとは FWの設定

sudo ufw enable
sudo ufw allow 445/tcp
sudo ufw status
sudo ufw reload

ざっとこんな感じ。
ですが /media/miyamo/Disk1を開かないと共有できない。
外付けHDDだから? まあいいか。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?