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?

Ubuntu24 samba server設定覚書

Last updated at Posted at 2025-07-30

ubuntuでファイルサーバとしてsamba設定。

sudo apt update
sudo apt upgrade

sudo apt install -y samba

cd /etc/samba/
sudo cp -a smb.conf smb.conf.default

vi smb.conf
下記追記
[htdocs]
        comment = httpd
        path = /var/www
        writable = yes
        hosts allow = 217.178.34.168/32
        hosts deny = 0.0.0.0/0

Sambaのユーザーに追加

sudo pdbedit -a username

retype new password:
Unix username:        username
NT username:
省略.............

samba 再起動

sudo systemctl restart smbd
sudo systemctl restart nmbd

WindowsPCにてファイルサーバとしてアクセス。

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?