1
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?

More than 1 year has passed since last update.

samba 覚書

Last updated at Posted at 2023-10-09

よく忘れるのでメモ

ここでの対象は Debian 11.7 です。

samba インストール

インストール

$ sudo apt install samba

ユーザ作成

LOGIN-USER は自分の名前に。

$ sudo pdbedit -a LOGIN-USER

設定

samba の設定

/etc/samba/smb.conf
  [homes]
-   read only = yes
+   read only = no
-   create mask = 0700
+   create mask = 0666
-   directory mask = 0700
+   directory mask = 0777

ファイアウォール

ポート 139, 445 を解放

$ sudo ufw allow 139
$ sudo ufw allow 445

サービス再起動

$ sudo systemctl restart smbd
1
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
1
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?