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

ubuntu 24.04 LTSで自宅サーバー構築(Sambaの設定)

Last updated at Posted at 2024-08-10

初期費用無料、月額990円から、高速・多機能・高安定レンタルサーバー『エックスサーバー』

taisuke@ubuntuserver:~$ sudo apt -y install samba
taisuke@ubuntuserver:~$ sudo mkdir /home/share
taisuke@ubuntuserver:~$ sudo chmod 777 /home/share
taisuke@ubuntuserver:~$ sudo vi /etc/samba/smb.conf
[global]
#25行目 : 追記 (文字コードを設定)
unix charset = UTF-8
dos charset = CP932
#39行目 : コメント解除してバインドするインターフェース変更
interfaces = 127.0.0.0/8 enp1s0(サーバーのLANのインターフェース名)
#46行目 : コメント解除
bind interfaces only = yes
#100行目 : 確認 (認証不要とする)
map to guest = bad user
.....
.....
#最終行に追記
#任意の共有名を設定
[Share]
#共有フォルダーを指定
path = /home/share
#書き込みを許可する
writable = yes
#ゲストユーザー (nobody) を許可する
guest ok = yes
#全てゲストユーザーとして扱う
guest only = yes
#ファイル作成時のパーミッションを [777] とする
force create mode = 777
#フォルダー作成時のパーミッションを [777] とする
force directory mode = 777
taisuke@ubuntuserver:~$ sudo systemctl restart smbd
初期費用無料、月額990円から、高速・多機能・高安定レンタルサーバー『エックスサーバー』

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