samba の Ubuntu 22.04.1 へのインストール (apt)

samba の Ubuntu 22.04.1 への apt によるインストールログです.

sudo apt -y update
sudo apt -y upgrade
sudo apt -y install samba
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.org
sudo vi /etc/samba/smb.conf
cat /etc/samba/smb.conf

/etc/samba/smb.confの内容は以下の様に

[global]
   workgroup = xxx
   server string = %h server (Samba, Ubuntu)
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccess        fully* .
   pam password change = yes
   map to guest = bad user
   usershare allow guests = yes
[homes]
   comment = Home Directories
   browseable = no
   read only = no

mayというアカウントをsamba上に作ります.

sudo smbpasswd -a may
sudo systemctl restart smbd


#linux #debian #debian11 #kernel #linux6 #certs #debianueficerts #pem #debianueficertspem

この記事が気に入ったらサポートをしてみませんか?