1
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 3 years have passed since last update.

sambaの設定

Last updated at Posted at 2020-11-07

#Raspberry Pi 3 Model Bにsambaをインストールしてみる

##環境

  • Raspberry Pi 3 Model B
  • OS : Raspberry Pi OS (32bit)
    • Linux raspberrypi 5.4.51-v7+

##インストール

  • コマンド
command
# sambaのインストール
sudo apt-get install samba samba-common-bin
# sambaディレクトリの作成
sudo mkdir /var/samba
# sambaユーザの作成
sudo useradd smbuser
sudo passwd smbuser
# sambaディレクトリに権限付与
sudo chown smbuser:smbuser /var/samba/
# sambaユーザをデータベースに追加
sudo pdbedit -a smbuser
# smb.confの編集
sudo cp -p /etc/samba/smb.conf /etc/samba/smb.conf.org
sudo vi /etc/samba/smb.conf
/etc/samba/smb.conf
[share]
   comment = Share Folder
   browseable = yes
   path = /var/samba
   writable = yes
   valid users = smbuser
   force user = smbuser
[pi]
   path = /home/pi
   read only = No
   guest ok = No
   force user = pi

あとは再起動すれば繋がります

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