Назад | Перейти на главную страницу

самба не работает и дает много ошибок

Я использую redhat и установил самбу Package samba-4.10.4-11.el7_8.x86_64

когда я пытаюсь запустить его, появляется следующая ошибка

# systemctl start smb.service
Job for smb.service failed because the control process exited with error code. S                                                               ee "systemctl status smb.service" and "journalctl -xe" for details.

и когда я пытаюсь увидеть статус, я получаю следующую ошибку

# systemctl status smb.service
● smb.service - Samba SMB Daemon
   Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2020-06-06 19:06:15 CDT; 25s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 34317 ExecStart=/usr/sbin/smbd --foreground --no-process-group $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 34317 (code=exited, status=1/FAILURE)
   Status: "Starting process..."

Jun 06 19:06:15 server.com smbd[34317]: [2020/06/06 19:06:15.610402,  0] ../../lib/util/debug.c:1091(reopen_one_log)
Jun 06 19:06:15 server.com smbd[34317]:   reopen_one_log: Unable to open new log file '/var/log/samba/log/.smbd': No ...ectory
Jun 06 19:06:15 server.com smbd[34317]: [2020/06/06 19:06:15.670734,  0] ../../source3/passdb/secrets.c:364(fetch_ldap_pw)
Jun 06 19:06:15 server.com smbd[34317]:   fetch_ldap_pw: neither ldap secret retrieved!
Jun 06 19:06:15 server.com smbd[34317]: [2020/06/06 19:06:15.670823,  0] ../../source3/passdb/pdb_ldap.c:6579(pdb_ini...ommon)
Jun 06 19:06:15 server.com smbd[34317]:   pdb_init_ldapsam_common: Failed to retrieve LDAP password from secrets.tdb
Jun 06 19:06:15 server.com systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE
Jun 06 19:06:15 server.com systemd[1]: Failed to start Samba SMB Daemon.
Jun 06 19:06:15 server.com systemd[1]: Unit smb.service entered failed state.
Jun 06 19:06:15 server.com systemd[1]: smb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.