Web lists-archives.com

Re: [Samba] samba.service is masked (Debian 9)




On Sat, 12 Jan 2019 22:04:50 +0100
Anton Blau via samba <samba@xxxxxxxxxxxxxxx> wrote:

> Hello,
> 
> please excuse my bad english. But I am not a native speaker.
> 
> I installed samba 4 (DC) like this description 
> http://tobs.tips/_doc_/ProxMoxDoc/07samba/ on a new Debian 9 System.
> 
> After
> 
> * apt-get install samba
> 
> * service samba stop
> 
> * rm -f /etc/samba/smb.conf
> 
> * samba-tool domain provision --use-rfc2307 --use-xattrs=yes
> --interactive
> 
> with no error-massages I try to start samba 4 via "service samba
> start". But now I get the error message
> 
> Failed to start samba.service: Unit samba.service is masked.
> 
> 
> What should tell me that?
> 
> 
> Google finds that:
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=769714#10
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740942
> 
> But I didn´t understand it.
> 
> 
> What is to do to run my samba 4 dc Server?
> 
> 
> Thank you!
> 
> 
> Tony
> 
> P. S. My System is a LXC Container based on Proxmox.
> 
> 

Is this all you installed ? :

apt-get install samba

If so try reading this:

https://wiki.samba.org/index.php/Distribution-specific_Package_Installation

Is this basically your smb.conf ? :

[global]
  workgroup = SMBDOMAIN
  realm = SMBDOMAIN.LOCAL.COMASYS.CH
  netbios name = FILE
  server role = active directory domain controller
  dns forwarder = 192.168.0.220
  idmap_ldb:use rfc2307 = yes

  vfs objects = acl_xattr
  map acl inherit = yes
  store dos attributes = yes

  printing = bsd
  load printers = no
  printcap name = /dev/null
  disable spoolss = yes

[homes]
  comment = Home Directories
  browseable = yes
  read only = no
  create mask = 0700
  directory mask = 0700
  valid users = %S

[Daten]
  comment = Daten
  path = /var/lib/samba/MOUNT/Data
  read only = no
  browseable = yes

[netlogon]
  path = /var/lib/samba/sysvol/smbdomain./scripts
  read only = No
  browseable = No

[sysvol]
  path = /var/lib/samba/sysvol
  read only = No
  browseable = No

If it is, make it like this:

[global]
  workgroup = SMBDOMAIN
  realm = SMBDOMAIN.LOCAL.COMASYS.CH
  netbios name = FILE
  server role = active directory domain controller
  dns forwarder = 192.168.0.220
  idmap_ldb:use rfc2307 = yes

  printing = bsd
  load printers = no
  printcap name = /dev/null
  disable spoolss = yes

[home]
  comment = Home Directories
  path = /home/%D/%U
  read only = no

[Daten]
  comment = Daten
  path = /var/lib/samba/MOUNT/Data
  read only = no

[netlogon]
  path = /var/lib/samba/sysvol/smbdomain.local.comasys.ch/scripts
  read only = No

[sysvol]
  path = /var/lib/samba/sysvol
  read only = No

And the answer to your original question is, you have to start
samba-ad-dc not samba, this will start the samba deamon and this will
start the smbd and winbindd deamons. You might have to unmask
samba-ad-dc:

systemctl unmask samba-ad-dc

I would find a better howto, if I were you ;-)

Rowland

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba