Ubuntu – Cannot restart samba, samba.service is masked

samba

When I try to restart Samba, I am receiving the following error message:

Failed to start samba.service: Unit samba.service is masked.

In addition, when I run systemctl, it shows smbd.service in red showing failed.

At the same time restart began to fail, I have lost the share ability in folders created and cannot access. Any help would be appreciated!!!

Best Answer

Debian and debian-derivatives changed the service name from 'samba' to 'smbd'.

Try service smbd restart.

Related Question