Rozmowy o wszystkich systemach i dystrybucjach linuksowych i uniksowych będących alternatywą dla Windows.
Awatar użytkownika

winuser

Zasłużony użytkownik
Posty: 1425
Rejestracja: 29 sie 2013, 13:15
    Mac OS X Opera

Post06 lip 2017, 21:56

Próbuję już 3ci raz zainstalować Sambę na Debianie 9 Stable x64. Nie udaje mi się, za każdym razem mam ten sam błąd.
Pomożecie, bo o tej porze już nie ogarniam?

Kod: Zaznacz cały

Konfigurowanie pakietu samba (2:4.5.8+dfsg-2) ...
Samba is not being run as an AD Domain Controller, masking samba-ad-dc-service.
Please ignore the following error about deb-systemd-helper not finding samba-ad-dc-service.
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service › /lib/systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is masked.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.service: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service › /lib/systemd/system/smbd.service.
Job for smbd.service failed because the control process exited with error code.
See "systemctl status smbd.service" and "journalctl -xe" for details.
invoke-rc.d: initscript smbd, action "start" failed.
? smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Thu 2017-07-06 21:48:54 CEST; 20ms ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
  Process: 29534 ExecStart=/usr/sbin/smbd $SMBDOPTIONS (code=exited, status=1/FAILURE)
 Main PID: 29534 (code=exited, status=1/FAILURE)

lip 06 21:48:53 serwer systemd[1]: Starting Samba SMB Daemon...
lip 06 21:48:54 serwer systemd[1]: smbd.service: Main process exited, code=…LURE
lip 06 21:48:54 serwer systemd[1]: Failed to start Samba SMB Daemon.
lip 06 21:48:54 serwer systemd[1]: smbd.service: Unit entered failed state.
lip 06 21:48:54 serwer systemd[1]: smbd.service: Failed with result 'exit-code'.
Hint: Some lines were ellipsized, use -l to show in full.
dpkg: błąd przetwarzania pakietu samba (--configure):
 podproces zainstalowany skrypt post-installation zwrócił kod błędu 1
Konfigurowanie pakietu attr (1:2.4.47-2+b2) ...
Przetwarzanie wyzwalaczy pakietu libc-bin (2.24-11+deb9u1)...
Przetwarzanie wyzwalaczy pakietu systemd (232-25)...
Wystąpiły błędy podczas przetwarzania:
 samba
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@serwer:~#
Wiem, wiem, fuck the systemd, ale ja już do niego przywykłem :trollface:
Laptop: Lenovo ThinkPad T480s | Intel Core i5 8250U | Intel HD 620 | 24GB RAM Hynix | Lexar NM620 NVME 1TB | Windows 10 Pro
PC: MSI Z87-G43 | Intel Xeon E3-1240 v3 | nVidia GTX 760 2GB | 16GB RAM Hynix | GoodRAM PX 500 NVME 512GB | Windows 10 Pro
Mobile: Google Pixel 6 | Google Tensor GS101 @2.8 GHz | Mali-G78 MP20 | 8GB RAM | 128GB MMC | Android 13
Serwer: AsRock AD2550-ITX | Intel Atom D2550 | PowerVR SGX545 | 8GB RAM Kingston | WD HDD 500GB | Windows Server 2012 R2 Datacenter
Sieć: Cudy WR3000 Wi-Fi 6 OpenWRT| Huawei HG8245Q2 | Netia 1Gb/s | RaspberryPi 4
PlayStation 4 | CUH-1116A | 1TB |

Awatar użytkownika

SzymekRak

Zasłużony użytkownik
Posty: 548
Rejestracja: 09 lip 2008, 11:55
Lokalizacja: gdzieś bardzo daleko
    Linux Firefox

Post07 lip 2017, 12:34

Pokaż wynik komendy:

Kod: Zaznacz cały

systemctl status -l smbd.service
Jak nic nie będzie widać, to można poszukać w:

Kod: Zaznacz cały

jounalctl -b
Z tego co jest w cytacie widać tylko, że Samba odmawia wystartowania a nie wiadomo dlaczego. Początkowe błędy są do zignorowania, bo nie stawiasz kontrolera AD(chyba, że stawiasz? :D)

Można jeszcze obadać konfigurację Samby poleceniem

Kod: Zaznacz cały

testparm
nie wiem

Awatar użytkownika

winuser

Zasłużony użytkownik
Posty: 1425
Rejestracja: 29 sie 2013, 13:15
    Mac OS X Opera

Post07 lip 2017, 16:36

Wystartowała :) Można się połączyć :) Z tym, że po IP, nie rozwiązuje mi po nazwie hosta :(
W smb.conf miałem "security = share" zamiast "security = user".
SzymekRak pisze:systemctl status -l smbd.service

Kod: Zaznacz cały

r
root@serwer:~# systemctl status -l smbd.service
? smbd.service - Samba SMB Daemon
   Loaded: loaded (/lib/systemd/system/smbd.service; enabled; vendor preset: ena
   Active: active (running) since Fri 2017-07-07 16:37:02 CEST; 3s ago
     Docs: man:smbd(8)
           man:samba(7)
           man:smb.conf(5)
 Main PID: 21065 (smbd)
   Status: "smbd: ready to serve connections..."
    Tasks: 4 (limit: 4915)
   CGroup: /system.slice/smbd.service
           +¦21065 /usr/sbin/smbd
           +¦21066 /usr/sbin/smbd
           +¦21067 /usr/sbin/smbd
           L¦21069 /usr/sbin/smbd

lip 07 16:37:02 serwer systemd[1]: Starting Samba SMB Daemon...
lip 07 16:37:02 serwer smbd[21064]: [2017/07/07 16:37:02.235275,  0] ../lib/para
lip 07 16:37:02 serwer smbd[21064]:   Unknown parameter encountered: "share mode
lip 07 16:37:02 serwer smbd[21064]: [2017/07/07 16:37:02.237517,  0] ../lib/para
lip 07 16:37:02 serwer smbd[21064]:   Ignoring unknown parameter "share modes"
lip 07 16:37:02 serwer systemd[1]: smbd.service: Supervising process 21065 which
lip 07 16:37:02 serwer smbd[21065]: [2017/07/07 16:37:02.283407,  0] ../lib/util
lip 07 16:37:02 serwer systemd[1]: Started Samba SMB Daemon.
Laptop: Lenovo ThinkPad T480s | Intel Core i5 8250U | Intel HD 620 | 24GB RAM Hynix | Lexar NM620 NVME 1TB | Windows 10 Pro
PC: MSI Z87-G43 | Intel Xeon E3-1240 v3 | nVidia GTX 760 2GB | 16GB RAM Hynix | GoodRAM PX 500 NVME 512GB | Windows 10 Pro
Mobile: Google Pixel 6 | Google Tensor GS101 @2.8 GHz | Mali-G78 MP20 | 8GB RAM | 128GB MMC | Android 13
Serwer: AsRock AD2550-ITX | Intel Atom D2550 | PowerVR SGX545 | 8GB RAM Kingston | WD HDD 500GB | Windows Server 2012 R2 Datacenter
Sieć: Cudy WR3000 Wi-Fi 6 OpenWRT| Huawei HG8245Q2 | Netia 1Gb/s | RaspberryPi 4
PlayStation 4 | CUH-1116A | 1TB |

Awatar użytkownika

SzymekRak

Zasłużony użytkownik
Posty: 548
Rejestracja: 09 lip 2008, 11:55
Lokalizacja: gdzieś bardzo daleko
    Linux Firefox

Post07 lip 2017, 20:32

Myślę, że może wystarczy włączyć wbudowany serwer WINS.
Kawałek pliku smb.conf:

Kod: Zaznacz cały

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
   workgroup = GRUPA_ROBOCZA

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
   dns proxy = no
nie wiem

Awatar użytkownika

winuser

Zasłużony użytkownik
Posty: 1425
Rejestracja: 29 sie 2013, 13:15
    Mac OS X Opera

Post07 lip 2017, 21:52

@SzymekRak, dzięki, poszło :)
Laptop: Lenovo ThinkPad T480s | Intel Core i5 8250U | Intel HD 620 | 24GB RAM Hynix | Lexar NM620 NVME 1TB | Windows 10 Pro
PC: MSI Z87-G43 | Intel Xeon E3-1240 v3 | nVidia GTX 760 2GB | 16GB RAM Hynix | GoodRAM PX 500 NVME 512GB | Windows 10 Pro
Mobile: Google Pixel 6 | Google Tensor GS101 @2.8 GHz | Mali-G78 MP20 | 8GB RAM | 128GB MMC | Android 13
Serwer: AsRock AD2550-ITX | Intel Atom D2550 | PowerVR SGX545 | 8GB RAM Kingston | WD HDD 500GB | Windows Server 2012 R2 Datacenter
Sieć: Cudy WR3000 Wi-Fi 6 OpenWRT| Huawei HG8245Q2 | Netia 1Gb/s | RaspberryPi 4
PlayStation 4 | CUH-1116A | 1TB |

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 1 gość