sudo yum -y install samba
sudo apt-get install samba
sudo apt install samba
sudo useradd hogehoge sudo passwd hogehoge sudo smbpasswd -a hogehoge
unix charset = UTF-8 dos charset = CP932 # Change this to the workgroup/NT-domain name your Samba server will part of workgroup = WORKGROUP # server string is the equivalent of the NT Description field server string = %h server (Samba, Ubuntu) dns proxy = no min protocol =NT1 #max protocol =SMB3 client max protocol = default socket options = TCP_NODELAY interfaces = 192.168.0.0/16 eth0
[home] comment= path=/home/hogehoge/ writable=Yes valid users=hogehoge create mask = 0777 directory mask = 0777
socket options = TCP_NODELAY
Samba | SMB |
3.6 | SMB2.00 |
4.0 4.1 | SMB2.02 ~ SMB3.00 |
4.2 | SMB2.02 ~ SMB3.02 |
4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10 | SMB2.02 ~ SMB3.11 |
setsebool -P allow_smbd_anon_write=on setsebool -P samba_enable_home_dirs=on setsebool -P samba_share_nfs=on setsebool -P samba_export_all_rw=on chcon -R -t public_content_rw_t /home/username/
firewall-cmd --add-port=445/tcp
[global] strict locking = no
sudo apt install wsdd
sudo service winbind start
sudo dnf install wsdd
sudo vi /etc/sysconfig/wsdd
-D -w ワークグループ名 --interface インターフェイス名 --ipv4only
-D -w work --interface enp3s0 --ipv4only
sudo systemctl restart nmb
sudo systemctl status nmb
max protocol =SMB2
testparm -v
client min protocol = SMB3
min protocol =SMB3
max protocol =SMB3
testparm