Author Topic: samba автозапуск  (Read 1833 times)

johnson81

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
samba автозапуск
« on: May 06, 2014, 04:07:55 pm »
поставил с портов Самбу, но она почему то сама не стартует после перезагрузки, а только с команды $ sudo service smbd start
и при это ошибки валят в лог, но она работает как надо
Code: [Select]
  smbd version 4.1.6-Zentyal started.
  Copyright Andrew Tridgell and the Samba Team 1992-2013
[2014/05/06 20:04:53.387185,  0] ../source3/smbd/server.c:1278(main)
  standard input is not a socket, assuming -D option
[2014/05/06 20:04:53.453864,  0] ../source3/printing/print_cups.c:151(cups_connect)
  Unable to connect to CUPS server localhost:631 - Bad file descriptor
[2014/05/06 20:04:53.454954,  0] ../source3/printing/print_cups.c:528(cups_async_callback)
  failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL

а вот содержание конфига etc/samba/smb.conf
Code: [Select]
#======================= Global Settings =====================================
[global]
workgroup = WORKGROUP
server string = Samba Server %v
netbios name = ubuntu
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[NEW]
path = /var/lib/transmission-daemon/downloads
browsable =yes
writable = yes
guest ok = yes
read only = no
[printers]
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = no
   read only = yes
   create mask = 0700
[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   guest ok = no

подскажите что не так?
« Last Edit: May 06, 2014, 04:51:39 pm by johnson81 »

johnson81

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: samba автозапуск
« Reply #1 on: May 06, 2014, 07:57:26 pm »
родной модуль File Sharing and Domain Services  не запускается, вот почему начал ставить сам
Code: [Select]
Некоторые модули сообщили об ошибках при сохранении. Больше информации можно узнать из журналов /var/log/zentyal/

The following modules failed while saving their changes, their state is unknown: samba The following modules failed while saving their changes, their state is unknown: samba at The following modules failed while saving their changes, their state is unknown: samba at /usr/share/perl5/EBox/GlobalImpl.pm line 735 EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x9b22734)', 'progress', 'EBox::ProgressIndicator=HASH(0x8dea220)') called at /usr/share/perl5/EBox/Global.pm line 95 EBox::Global::AUTOLOAD('EBox::Global=HASH(0x9b3aec8)', 'progress', 'EBox::ProgressIndicator=HASH(0x8dea220)') called at /usr/share/zentyal/global-action line 32 eval {...} at /usr/share/zentyal/global-action line 30


johnson81

  • Zen Apprentice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: samba автозапуск
« Reply #2 on: May 06, 2014, 10:02:06 pm »
вообщем запустил встроенный File Sharing and Domain Services
проблема в том что NetBIOS и WORKGROUP совпадает и поэтому ошибка, сменил в Домен->Настройки
NetBIOS domain name на другое и File Sharing and Domain Services поднялся
samba работает, и после перезагрузки тоже