Troubleshooting of samba error in Linux configuration startup
- systemctl start SMB indicates an error and the firewall needs to be closed. Set SELinux to disabled through sudo VI/etc/SELinux/config, and systemctl start SMB succeeds again. Windows connects to Linux through samba and prompts an error. You need to turn off the firewall through sudo systemctl stop firewalld. Then, connect again and succeed ol>
Configuring Samba login users
Sudo smbpasswd – a username
sudo smbpasswd – A to add a user, the user to be added must already be a system user
sudo smbpasswd – D to freeze the user so that the user can no longer log in
sudo smbpasswd – e to restore the user, so that the frozen user can use
sudo smbpasswd – n to set the user’s password to null again