Fernzugriff

Einrichtung der openHAB Umgebung und allgemeine Konfigurationsthemen.

Moderatoren: seppy, udo1toni

Benutzeravatar
udo1toni
Beiträge: 13986
Registriert: 11. Apr 2018 18:05
Answers: 222
Wohnort: Darmstadt

Re: Fernzugriff

Beitrag von udo1toni »

Dann läuft Samba nicht.
openHAB4.1.2 stable in einem Debian-Container (bookworm) (Proxmox 8.1.5, LXC), mit openHABian eingerichtet

Snatsch
Beiträge: 367
Registriert: 9. Jan 2021 22:55
Answers: 0

Re: Fernzugriff

Beitrag von Snatsch »

der Befehl " testparm" gibt mir folgendes aus

Code: Alles auswählen

admin@docker:~ $ testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        usershare allow guests = Yes
        idmap config * : backend = tdb


[homes]
        browseable = No
        comment = Home Directories
        create mask = 0700
        directory mask = 0700
        valid users = %S


[printers]
        browseable = No
        comment = All Printers
        create mask = 0700
        path = /var/tmp
        printable = Yes


[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers
openhab4.1.2 auf Pi 4 im Docker Portainer /Grafana&InfluxDB auf Pi 3 in Docker Portainer/Pi 3 mit Docker zur Datensicherung

Benutzeravatar
udo1toni
Beiträge: 13986
Registriert: 11. Apr 2018 18:05
Answers: 222
Wohnort: Darmstadt

Re: Fernzugriff

Beitrag von udo1toni »

Nun ja, Du hast zunächst mal kein einziges Verzeichnis definiert, wobei dennoch der Server gefunden werden müsste.
openHAB4.1.2 stable in einem Debian-Container (bookworm) (Proxmox 8.1.5, LXC), mit openHABian eingerichtet

Snatsch
Beiträge: 367
Registriert: 9. Jan 2021 22:55
Answers: 0

Re: Fernzugriff

Beitrag von Snatsch »

bin langsam wirklich am verzweifeln :? das mit der Samba Freigabe möchte bei mir überhaupt nicht klappen
Vielleicht hat jemand den richtigen Tipp für mich. Das ist meine Datei im Container.

Code: Alles auswählen

version: '3'
services:
  samba:
    image: dperson/samba
    restart: always
    networks:
      - default
      - portainer_agent
    volumes:
      - /portainer/Files/AppData/Config/openHAB4/openhab_conf:/mount/openHAB4_conf
      - /portainer/Files/AppData/Config/openHAB4/openhab_userdata:/mount/openHAB4_userdata
    command: '-s "openHAB4_conf;/mount/openHAB4_conf;yes;no;yes;all;none" -s "openHAB4_userdata;/mount/openHAB4_userdata;yes;no;yes;all;none" -g'
    environment:
      - SAMBA_USER=admin
      - SAMBA_PASS=XXXXXXX
networks:
  default:
  portainer_agent:

und das die Ausgabe von testparm

Code: Alles auswählen

admin@docker:~ $ testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Weak crypto is allowed by GnuTLS (e.g. NTLM as a compatibility fallback)

WARNING: lock directory /run/samba does not exist

WARNING: pid directory /run/samba does not exist

Server role: ROLE_STANDALONE

Press enter to see a dump of your service definitions

# Global parameters
[global]
        log file = /var/log/samba/log.%m
        logging = file
        map to guest = Bad User
        max log size = 1000
        obey pam restrictions = Yes
        pam password change = Yes
        panic action = /usr/share/samba/panic-action %d
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        passwd program = /usr/bin/passwd %u
        server role = standalone server
        unix password sync = Yes
        usershare allow guests = Yes
        idmap config * : backend = tdb


[homes]
        browseable = No
        comment = Home Directories
        create mask = 0700
        directory mask = 0700
        valid users = %S


[printers]
        browseable = No
        comment = All Printers
        create mask = 0700
        path = /var/tmp
        printable = Yes


[print$]
        comment = Printer Drivers
        path = /var/lib/samba/printers


[openHAB4]
        comment = OpenHAB4 Configuration
        create mask = 0700
        directory mask = 0700
        path = /mount/openHAB4_conf
        read only = No
        valid users = admin
openhab4.1.2 auf Pi 4 im Docker Portainer /Grafana&InfluxDB auf Pi 3 in Docker Portainer/Pi 3 mit Docker zur Datensicherung

Antworten