Ubuntu Service samba is masked and can't start

Mohamed Gabr

i'm trying to run samba service on Ubuntu server and it gives me erros and says its masked and dead, how do i fix that ? what does cause it to be like this?

Here is the error i get:-

Failed to start samba.service: Unit samba.service is masked. If I'm running the Ubuntu server on Virtual box, would that be the issue? thanks.

enter image description here

JdeBP

This is not a bug.

What you describe is intentional on the parts of the Debian people.

You are not supposed to control samba services this way on a Debian/Ubuntu systemd operating system. You are supposed to manipulate the smbd, nmbd, and samba-ad-dc services as needed.

There is no umbrella samba.target to do the original job of the old Debian/Ubuntu samba van Smoorenburg rc script; which was starting/stopping these three en bloc. Other people created them, for other systemd operating systems. The Debian people did not.

So where you read Debian/Ubuntu doco saying things like

service samba action
remember that that is not an available thing any more, now that Debian Linux and Ubuntu Linux are systemd operating systems.

Just to add to the confusion …

What the rest of the world outwith Debian knows as samba.service is called samba-ad-dc.service in the Debian world. Similarly, nmbd.service and smbd.service are originally nmb.service and smb.service outwith Debian.

So where you read generic systemd operating system doco about samba talking about nmb, smb, and samba services, you must mentally perform the translation for Debian/Ubuntu, particularly for the latter name.

Further reading

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

SystemD Can't get script to start Samba4 Active Directory-Domain Controller (AD-DC) at boot Ubuntu 16.04

분류에서Dev

can't start mysql service anymore

분류에서Dev

Can't uninstall postgresql package due failing to start service?

분류에서Dev

I install ubuntu 13.10 but the Pc can't start up ubuntu it start with windows

분류에서Dev

Can't start up Ubuntu after restarting to complete installation

분류에서Dev

MySQL service doesn't start

분류에서Dev

Can't start Byobu?

분류에서Dev

How to start the OpenVPN client service on Ubuntu 15.04

분류에서Dev

Android: startService won't start target service

분류에서Dev

UBUNTU의 SAMBA 14.04

분류에서Dev

Ubuntu Server/Samba

분류에서Dev

samba failed to start after install

분류에서Dev

Steam won't start on Ubuntu GNOME 16.04

분류에서Dev

Ubuntu Service Samba가 마스킹되고 시작할 수 없습니다.

분류에서Dev

unable to install samba on ubuntu 14.04

분류에서Dev

Samba share fails in Ubuntu 14.04.4

분류에서Dev

apache2 can't stop and nginx can't start

분류에서Dev

I can't start a new project on Netbeans

분류에서Dev

Ruby app and Resque: can't start workers

분류에서Dev

can't start calligra on linux xfce

분류에서Dev

Can't start MySQL server (database corruption)

분류에서Dev

can't start lightdm without systemctl

분류에서Dev

Confused why systemd service doesn't start at boot

분류에서Dev

Why can't I log in to my Samba share on my home network?

분류에서Dev

Can ping but can't browse ubuntu 16.04

분류에서Dev

Ubuntu 15.10 doesn't start after install amd drivers

분류에서Dev

Web service can connect in IE, but can't connect by Visual studio

분류에서Dev

Ubuntu 12.04 - I can ssh into the server but sshd is an unrecognized service

분류에서Dev

Ubuntu 12.04 - I can ssh into the server but sshd is an unrecognized service

Related 관련 기사

  1. 1

    SystemD Can't get script to start Samba4 Active Directory-Domain Controller (AD-DC) at boot Ubuntu 16.04

  2. 2

    can't start mysql service anymore

  3. 3

    Can't uninstall postgresql package due failing to start service?

  4. 4

    I install ubuntu 13.10 but the Pc can't start up ubuntu it start with windows

  5. 5

    Can't start up Ubuntu after restarting to complete installation

  6. 6

    MySQL service doesn't start

  7. 7

    Can't start Byobu?

  8. 8

    How to start the OpenVPN client service on Ubuntu 15.04

  9. 9

    Android: startService won't start target service

  10. 10

    UBUNTU의 SAMBA 14.04

  11. 11

    Ubuntu Server/Samba

  12. 12

    samba failed to start after install

  13. 13

    Steam won't start on Ubuntu GNOME 16.04

  14. 14

    Ubuntu Service Samba가 마스킹되고 시작할 수 없습니다.

  15. 15

    unable to install samba on ubuntu 14.04

  16. 16

    Samba share fails in Ubuntu 14.04.4

  17. 17

    apache2 can't stop and nginx can't start

  18. 18

    I can't start a new project on Netbeans

  19. 19

    Ruby app and Resque: can't start workers

  20. 20

    can't start calligra on linux xfce

  21. 21

    Can't start MySQL server (database corruption)

  22. 22

    can't start lightdm without systemctl

  23. 23

    Confused why systemd service doesn't start at boot

  24. 24

    Why can't I log in to my Samba share on my home network?

  25. 25

    Can ping but can't browse ubuntu 16.04

  26. 26

    Ubuntu 15.10 doesn't start after install amd drivers

  27. 27

    Web service can connect in IE, but can't connect by Visual studio

  28. 28

    Ubuntu 12.04 - I can ssh into the server but sshd is an unrecognized service

  29. 29

    Ubuntu 12.04 - I can ssh into the server but sshd is an unrecognized service

뜨겁다태그

보관