Mam problem z sambą. Niby wszystko (prawie) wskazuje że działa a nie ma udziału w Windowsie. Czasem pojawia się sam serwer w otoczeniu sieciowym w Windowsie lecz nie mogę w niego wejść (nie można odnaleźć ścieżki). Szukam po necie ale mojego przypadku nie mogę znaleźć. Są podobne-próbuję coś naprawiać ale nic nie działa-dlatego proszę o pomoc już tutaj.
Wersja samby: 2:4.2.14+dfsg-0+deb8u9
Serwer: debian
Trochę configów, logi itp.
Kod: Zaznacz cały
root@serwer:/home/pawel# testparm –s
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]"
Processing section "[test]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
# Global parameters
[global]
        interfaces = 127.0.0.0/8 eth1
        server role = standalone server
        security = USER
        map to guest = Bad User
        obey pam restrictions = Yes
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap config * : backend = tdb
[homes]
        comment = Home Directories
        valid users = %S
        create mask = 0700
        directory mask = 0700
        browseable = No
[printers]
        comment = All Printers
        path = /var/spool/samba
        create mask = 0700
        printable = Yes
        print ok = Yes
        browseable = No
[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
[test]
        path = /home/pawel/TestSamba
        read only = No
        guest ok = Yes
[public]
        comment = Shared Public Directory
        path = /home/pawel/samba
        read only = No
        force create mode = 0666
        force directory mode = 0777
        guest ok = Yes
Kod: Zaznacz cały
root@serwer:/home/pawel# systemctl status smbd.service
● smbd.service - LSB: start Samba SMB/CIFS daemon (smbd)
   Loaded: loaded (/etc/init.d/smbd; generated; vendor preset: enabled)
   Active: active (running) since Tue 2022-05-31 13:20:29 CEST; 18min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 17288 ExecStop=/etc/init.d/smbd stop (code=exited, status=0/SUCCESS)
  Process: 20037 ExecReload=/etc/init.d/smbd reload (code=exited, status=0/SUCCESS)
  Process: 17299 ExecStart=/etc/init.d/smbd start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/smbd.service
           ├─17310 /usr/sbin/smbd -D
           └─17313 /usr/sbin/smbd -D
maj 31 13:20:29 serwer.pl systemd[1]: Stopped LSB: start Samba SMB/CIFS daemon (smbd).
maj 31 13:20:29 serwer.pl systemd[1]: Starting LSB: start Samba SMB/CIFS daemon (smbd)...
maj 31 13:20:29 serwer.pl smbd[17299]: Starting SMB/CIFS daemon: smbd.
maj 31 13:20:29 serwer.pl systemd[1]: Started LSB: start Samba SMB/CIFS daemon (smbd).
Kod: Zaznacz cały
root@serwer: /etc/init.d/samba restart
[ ok ] Restarting nmbd (via systemctl): nmbd.service.
[ ok ] Restarting smbd (via systemctl): smbd.service.
[ ok ] Restarting samba-ad-dc (via systemctl): samba-ad-dc.service.
Kod: Zaznacz cały
root@serwer:/var/log/samba# nano log.nmbd
[2022/05/31 13:50:08.265964,  0] ../source3/nmbd/nmbd.c:58(terminate)
  Got SIGTERM: going down...
[2022/05/31 13:50:09,  0] ../source3/nmbd/nmbd.c:908(main)
  nmbd version 4.2.14-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2022/05/31 13:50:09.688801,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'nmbd' finished starting up and ready to serve connections
  Samba name server serwer is now a local master browser for workgroup WORKGROUP on subnet 192.168.2.1
  *****
Kod: Zaznacz cały
root@serwer:/var/log/samba# nano log.smbd
[2022/05/31 13:50:09.768976,  0] ../lib/util/pidfile.c:153(pidfile_unlink)
  Failed to delete pidfile /var/run/samba/smbd.pid. Error was Nie ma takiego pliku ani katalogu
[2022/05/31 13:50:11,  0] ../source3/smbd/server.c:1241(main)
  smbd version 4.2.14-Debian started.
  Copyright Andrew Tridgell and the Samba Team 1992-2014
[2022/05/31 13:50:11.191091,  0] ../lib/util/become_daemon.c:124(daemon_ready)
  STATUS=daemon 'smbd' finished starting up and ready to serve connections
Kod: Zaznacz cały
root@serwer:/home/pawel# ls -l /var/run/samba/smbd.pid
-rw-r--r-- 1 root root 6 maj 31 13:50 /var/run/samba/smbd.pid


