Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. pam_unix(su:auth): authentication failure

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    pam_unix(su:auth): authentication failure

    This topic has been deleted. Only users with topic management privileges can see it.
    • ?
      A Former User last edited by A Former User

      Guten Tag zusammen,

      ich komm nicht mehr weiter.
      Alle bisherigen Beiträge, die ich zum Thema gefunden habe, helfen mir leider nicht weiter.

      User bei Installation: pi
      Alles aktuell, neueste Versionen.
      $ node -v --> v22.13.0
      $ iob version --> 7.0.6

      Der Service startet nicht richtig.

      an 08 14:36:20 pi5 systemd[1]: Started iobroker.service - ioBroker Server.
      Jan 08 14:36:21 pi5 bash[1505]: host.pi5 check instance "system.adapter.admin.0" for host "pi5"
      Jan 08 14:36:21 pi5 bash[1505]: host.pi5 check instance "system.adapter.backitup.0" for host "pi5"
      Jan 08 14:36:21 pi5 bash[1505]: host.pi5 check instance "system.adapter.discovery.0" for host "pi5"
      Jan 08 14:36:22 pi5 su[1541]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=root
      Jan 08 14:36:23 pi5 sudo[1559]: iobroker : PWD=/ ; USER=root ; COMMAND=/usr/bin/apt -v
      Jan 08 14:36:23 pi5 sudo[1559]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1001)
      Jan 08 14:36:23 pi5 sudo[1559]: pam_unix(sudo:session): session closed for user root
      Jan 08 14:36:23 pi5 sudo[1564]: iobroker : PWD=/ ; USER=root ; COMMAND=/usr/bin/apt list --upgradeable
      Jan 08 14:36:23 pi5 sudo[1564]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1001)
      an 08 14:36:24 pi5 sudo[1564]: pam_unix(sudo:session): session closed for user root
      Jan 08 14:36:25 pi5 su[1541]: FAILED SU (to root) iobroker on none
      Jan 08 14:36:25 pi5 su[1575]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=root
      Jan 08 14:36:27 pi5 su[1575]: FAILED SU (to root) iobroker on none
      Jan 08 14:36:28 pi5 su[1592]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=pi
      Jan 08 14:36:30 pi5 su[1592]: FAILED SU (to pi) iobroker on none
      Jan 08 14:36:31 pi5 su[1608]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=pi
      Jan 08 14:36:33 pi5 su[1608]: FAILED SU (to pi) iobroker on none
      Jan 08 14:36:34 pi5 su[1609]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=pi
      
      $ iob info
      Platform       : linux
      os             : linux
      Architecture   : arm64
      CPUs           : 4
      Speed          : 2400 MHz
      Model          : Cortex-A76
      RAM            : 7.8 GB
      System uptime  : 02:46:11
      Node.js        : v22.13.0
      time           : 1736343814820
      timeOffset     : -60
      NPM            : 10.9.2
      adapters count : 554
      Disk size      : 468.9 GiB
      Disk free      : 451.1 GiB
      
      ========== Start marking the full check here ===========
      
      ```bash
      Script v.2024-10-19
      
      *** BASE SYSTEM ***
       Static hostname: pi5
             Icon name: computer
      Operating System: Debian GNU/Linux 12 (bookworm)
                Kernel: Linux 6.6.63-v8-16k+
          Architecture: arm64
      OS is similar to:
      
      Model		: Raspberry Pi 5 Model B Rev 1.0
      Docker          : false
      Virtualization  : none
      Kernel          : aarch64
      Userland        : 64 bit
      
      Systemuptime and Load:
       11:11:16 up 3 min,  4 users,  load average: 0.14, 0.06, 0.02
      CPU threads: 4
      
      
      *** LIFE CYCLE STATUS ***
      Operating System is the current Debian stable version codenamed 'bookworm'!
      
      *** RASPBERRY THROTTLING ***
      Current issues:
      No throttling issues detected.
      
      Previously detected issues:
      No throttling issues detected.
      
      *** TIME AND TIMEZONES ***
                     Local time: Wed 2025-01-08 11:11:17 CET
                 Universal time: Wed 2025-01-08 10:11:17 UTC
                       RTC time: Wed 2025-01-08 10:11:16
                      Time zone: Europe/Berlin (CET, +0100)
      System clock synchronized: yes
                    NTP service: active
                RTC in local TZ: no
      
      *** Users and Groups ***
      User that called 'iob diag':
      pi
      HOME=/home/pi
      GROUPS=pi adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi iobroker
      
      User that is running 'js-controller':
      iobroker
      HOME=/home/iobroker
      GROUPS=iobroker tty dialout audio video plugdev bluetooth gpio i2c
      
      *** DISPLAY-SERVER SETUP ***
      Display-Server: false
      Desktop:
      Terminal: 	tty
      
      System is booting into 'graphical.target'. Usually a server is running in 'multi-user.target'. Please set BootTarget to 'multi-user.target' or run 'iobroker fix'
      
      *** MEMORY ***
                     total        used        free      shared  buff/cache   available
      Mem:            8.5G        1.1G        6.3G         28M        1.1G        7.3G
      Swap:           536M          0B        536M
      Total:          9.0G        1.1G        6.9G
      
      Active iob-Instances: 	4
      
               8064 M total memory
               1065 M used memory
               1228 M active memory
                552 M inactive memory
               6034 M free memory
                 83 M buffer memory
                990 M swap cache
                511 M total swap
                  0 M used swap
                511 M free swap
      
      *** top - Table Of Processes  ***
      top - 11:11:17 up 3 min,  4 users,  load average: 0.14, 0.06, 0.02
      Tasks: 237 total,   1 running, 236 sleeping,   0 stopped,   0 zombie
      %Cpu(s): 50.0 us,  0.0 sy,  0.0 ni, 50.0 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
      MiB Mem :   8064.2 total,   6033.3 free,   1067.0 used,   1073.5 buff/cache
      MiB Swap:    512.0 total,    512.0 free,      0.0 used.   6997.2 avail Mem
      
      *** FAILED SERVICES ***
      
        UNIT LOAD ACTIVE SUB DESCRIPTION
      0 loaded units listed.
      
      
      *** DMESG CRITICAL ERRORS ***
      No critical errors detected
      
      *** FILESYSTEM ***
      Filesystem     Type      Size  Used Avail Use% Mounted on
      udev           devtmpfs  3.9G     0  3.9G   0% /dev
      tmpfs          tmpfs     807M  6.0M  801M   1% /run
      /dev/nvme0n1p2 ext4      469G   18G  428G   4% /
      tmpfs          tmpfs     4.0G  368K  4.0G   1% /dev/shm
      tmpfs          tmpfs     5.0M   48K  5.0M   1% /run/lock
      /dev/nvme0n1p1 vfat      510M   68M  443M  14% /boot/firmware
      tmpfs          tmpfs     807M  192K  807M   1% /run/user/1000
      
      Messages concerning ext4 filesystem in dmesg:
      [Wed Jan  8 11:08:03 2025] Kernel command line: reboot=w coherent_pool=1M 8250.nr_uarts=1 pci=pcie_bus_safe cgroup_disable=memory numa_policy=interleave  numa=fake=8 system_heap.max_order=0 smsc95xx.macaddr=2C:CF:67:9D:43:28 vc_mem.mem_base=0x3fc00000 vc_mem.mem_size=0x40000000  console=ttyAMA10,115200 console=tty1 root=PARTUUID=6a5f591c-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles
      [Wed Jan  8 11:08:04 2025] EXT4-fs (nvme0n1p2): mounted filesystem a36be96c-66be-4487-a7a6-0481bca99d89 ro with ordered data mode. Quota mode: none.
      [Wed Jan  8 11:08:04 2025] EXT4-fs (nvme0n1p2): re-mounted a36be96c-66be-4487-a7a6-0481bca99d89 r/w. Quota mode: none.
      
      Show mounted filesystems:
      TARGET               SOURCE         FSTYPE      OPTIONS
      /                    /dev/nvme0n1p2 ext4        rw,noatime
      |-/run/user/1000/doc portal         fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000
      `-/boot/firmware     /dev/nvme0n1p1 vfat        rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro
      
      Files in neuralgic directories:
      
      /var:
      3.5G	/var/
      2.6G	/var/lib
      2.4G	/var/lib/caddy/
      
      Archived and active journals take up 180.6M in the file system.
      
      /opt/iobroker/backups:
      4.0K	/opt/iobroker/backups/
      
      /opt/iobroker/iobroker-data:
      192M	/opt/iobroker/iobroker-data/
      187M	/opt/iobroker/iobroker-data/files
      158M	/opt/iobroker/iobroker-data/files/admin.admin
      157M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static/js
      157M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static
      
      The five largest files in iobroker-data are:
      12M	/opt/iobroker/iobroker-data/files/backitup.admin/static/js/main.bd24114f.js
      7.4M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_iobroker_adapter-react-v5_node_modules_mui_icons-material_esm_index_js.d7ed606b.chunk.js.map
      7.0M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_icons-material_esm_index_js.e5b40573.chunk.js.map
      7.0M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_icons-material_esm_index_js.8219fdd8.chunk.js.map
      7.0M	/opt/iobroker/iobroker-data/files/admin.admin/custom/static/js/vendors-node_modules_mui_icons-material_esm_index_js.358dc38e.chunk.js.map
      
      USB-Devices by-id:
      USB-Sticks -  Avoid direct links to /dev/tty* in your adapter setups, please always prefer the links 'by-id':
      
      No Devices found 'by-id'
      
      *** NodeJS-Installation ***
      
      /usr/bin/nodejs 	v22.11.0
      /usr/bin/node 		v22.11.0
      /usr/bin/npm 		10.9.0
      /usr/bin/npx 		10.9.0
      /usr/bin/corepack 	0.29.4
      
      nodejs:
        Installed: 22.11.0-1nodesource1
        Candidate: 22.13.0-1nodesource1
        Version table:
           22.13.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.12.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
       *** 22.11.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
              100 /var/lib/dpkg/status
           22.10.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.9.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.8.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.7.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.6.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.5.1-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.5.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.4.1-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.4.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.3.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.2.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.1.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           22.0.0-1nodesource1 500
              500 https://deb.nodesource.com/node_22.x nodistro/main arm64 Packages
           18.19.0+dfsg-6~deb12u2 500
              500 http://deb.debian.org/debian bookworm/main arm64 Packages
           18.19.0+dfsg-6~deb12u1 500
              500 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages
      
      Temp directories causing deletion problem: 0
      No problems detected
      
      Errors in npm tree: 0
      No problems detected
      
      *** ioBroker-Installation ***
      
      ioBroker Status
      iobroker is running on this host.
      
      
      Objects type: jsonl
      States  type: jsonl
      
      Hosts:
      pi5                 pi5 (version: 7.0.6, hostname: pi5           , alive, uptime: 181)
      
      Core adapters versions
      js-controller: 	7.0.6
      admin: 		7.4.10
      javascript: 	"javascript" not found
      
      nodejs modules from github: 	0
      
      Adapter State
      + system.adapter.admin.0                  : admin                 : pi5                                      -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      + system.adapter.backitup.0               : backitup              : pi5                                      -  enabled
      + system.adapter.discovery.0              : discovery             : pi5                                      -  enabled
      
      + instance is alive
      
      Enabled adapters with bindings
      + system.adapter.admin.0                  : admin                 : pi5                                      -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
      
      ioBroker-Repositories
      ┌─────────┬──────────┬─────────────────────────────────────────────────────────┬──────────────┐
      │ (index) │ name     │ url                                                     │ auto upgrade │
      ├─────────┼──────────┼─────────────────────────────────────────────────────────┼──────────────┤
      │ 0       │ 'stable' │ 'http://download.iobroker.net/sources-dist.json'        │ false        │
      │ 1       │ 'beta'   │ 'http://download.iobroker.net/sources-dist-latest.json' │ false        │
      └─────────┴──────────┴─────────────────────────────────────────────────────────┴──────────────┘
      
      Active repo(s): stable
      Upgrade policy: none
      
      Installed ioBroker-Instances
      Used repository: stable
      Adapter    "admin"        : 7.4.10   , installed 7.4.10
      Adapter    "backitup"     : 3.0.25   , installed 3.0.25
      Adapter    "discovery"    : 5.0.0    , installed 5.0.0
      Controller "js-controller": 7.0.6    , installed 7.0.6
      
      Objects and States
      Please stand by - This may take a while
      Objects: 	141
      States: 	99
      
      *** OS-Repositories and Updates ***
      Hit:1 http://deb.debian.org/debian bookworm InRelease
      Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
      Hit:3 http://archive.raspberrypi.com/debian bookworm InRelease
      Hit:4 http://deb.debian.org/debian bookworm-updates InRelease
      Get:5 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease [8266 B]
      Hit:6 https://deb.nodesource.com/node_22.x nodistro InRelease
      Fetched 8266 B in 0s (18.1 kB/s)
      Reading package lists...
      Pending Updates: 25
      
      *** Listening Ports ***
      Active Internet connections (only servers)
      Proto Recv-Q Send-Q Local Address           Foreign Address         State       User       Inode      PID/Program name
      tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      0          6067       740/cupsd
      tcp        0      0 127.0.0.1:9001          0.0.0.0:*               LISTEN      1001       6952       741/iobroker.js-con
      tcp        0      0 127.0.0.1:9000          0.0.0.0:*               LISTEN      1001       6957       741/iobroker.js-con
      tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      0          2046       765/sshd: /usr/sbin
      tcp        0      0 127.0.0.1:2019          0.0.0.0:*               LISTEN      999        8432       989/caddy
      tcp6       0      0 :::8081                 :::*                    LISTEN      1001       9387       954/io.admin.0
      tcp6       0      0 ::1:631                 :::*                    LISTEN      0          6066       740/cupsd
      tcp6       0      0 :::30000                :::*                    LISTEN      1000       12297      1015/node
      tcp6       0      0 :::30001                :::*                    LISTEN      1000       9808       1016/node
      tcp6       0      0 :::9091                 :::*                    LISTEN      0          9645       1179/authelia
      tcp6       0      0 :::443                  :::*                    LISTEN      999        9461       989/caddy
      tcp6       0      0 :::22                   :::*                    LISTEN      0          2048       765/sshd: /usr/sbin
      tcp6       0      0 :::80                   :::*                    LISTEN      999        9463       989/caddy
      udp        0      0 0.0.0.0:36846           0.0.0.0:*                           104        1905       574/avahi-daemon: r
      udp        0      0 192.168.178.95:41504    0.0.0.0:*                           1000       8709       1016/node
      udp        0      0 0.0.0.0:5353            0.0.0.0:*                           104        1903       574/avahi-daemon: r
      udp6       0      0 :::59895                :::*                                104        1906       574/avahi-daemon: r
      udp6       0      0 :::443                  :::*                                999        9462       989/caddy
      udp6       0      0 fe80::8790:86fb:544:546 :::*                                0          8534       642/NetworkManager
      udp6       0      0 :::5353                 :::*                                104        1904       574/avahi-daemon: r
      
      *** Log File - Last 25 Lines ***
      
      2025-01-08 11:07:50.841  - info: host.pi5 instance system.adapter.backitup.0 terminated with code 0 (NO_ERROR)
      2025-01-08 11:07:50.841  - info: host.pi5 All instances are stopped.
      2025-01-08 11:07:50.988  - info: host.pi5 terminated
      2025-01-08 11:08:07.000  - info: host.pi5 iobroker.js-controller version 7.0.6 js-controller starting
      2025-01-08 11:08:07.002  - info: host.pi5 Copyright (c) 2014-2024 bluefox, 2014 hobbyquaker
      2025-01-08 11:08:07.003  - info: host.pi5 hostname: pi5, node: v22.11.0
      2025-01-08 11:08:07.003  - info: host.pi5 ip addresses:
      2025-01-08 11:08:07.350  - info: host.pi5 connected to Objects and States
      2025-01-08 11:08:07.360  - info: host.pi5 added notifications configuration of host
      2025-01-08 11:08:07.473  - info: host.pi5 3 instances found
      2025-01-08 11:08:07.475  - info: host.pi5 starting 3 instances
      2025-01-08 11:08:07.637  - info: host.pi5 instance system.adapter.admin.0 in version "7.4.10" started with pid 954
      2025-01-08 11:08:08.530  - info: admin.0 (954) starting. Version 7.4.10 in /opt/iobroker/node_modules/iobroker.admin, node: v22.11.0, js-controller: 7.0.6
      2025-01-08 11:08:08.550  - info: admin.0 (954) requesting all objects
      2025-01-08 11:08:08.610  - warn: admin.0 (954) Cannot check node.js versions: Error: getaddrinfo EAI_AGAIN nodejs.org
      2025-01-08 11:08:08.799  - info: admin.0 (954) received all objects
      2025-01-08 11:08:08.821  - warn: admin.0 (954) Cannot update news: getaddrinfo EAI_AGAIN iobroker.live
      2025-01-08 11:08:08.967  - info: admin.0 (954) socket.io server listening on port 8081
      2025-01-08 11:08:08.971  - info: admin.0 (954) http server listening on port 8081
      2025-01-08 11:08:08.971  - info: admin.0 (954) Use link "http://127.0.0.1:8081" to configure.
      2025-01-08 11:08:11.696  - info: host.pi5 instance system.adapter.backitup.0 in version "3.0.25" started with pid 1515
      2025-01-08 11:08:12.609  - info: backitup.0 (1515) starting. Version 3.0.25 in /opt/iobroker/node_modules/iobroker.backitup, node: v22.11.0, js-controller: 7.0.6
      2025-01-08 11:08:12.646  - info: backitup.0 (1515) [iobroker] backup will be activated at 02:48 every 1 day(s)
      2025-01-08 11:08:15.632  - info: host.pi5 instance system.adapter.discovery.0 in version "5.0.0" started with pid 1969
      2025-01-08 11:08:16.300  - info: discovery.0 (1969) starting. Version 5.0.0 in /opt/iobroker/node_modules/iobroker.discovery, node: v22.11.0, js-controller: 7.0.6
      
      

      ============ Mark until here for C&P =============

      Homoran 1 Reply Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Guest last edited by

        @blubby worum geht es hier?
        Da gibt es leider 0 Hintergrund!

        pam klingt nach Proxmox

        @blubby sagte in pam_unix(su:auth): authentication failure:

        Alles aktuell, neueste Versionen.
        $ node -v --> v22.13.0

        zu neu!
        ist noch nicht für ioBroker empfohlen.

        Wie kommst du daran?
        mit dem Installer jedenfalls nicht.

        ? 1 Reply Last reply Reply Quote 0
        • ?
          A Former User @Homoran last edited by A Former User

          @homoran
          Danke schonmal für dein Feedback.
          Node war schon auf dem System, für andere Services...

          AFAIK sollte das Problem nichts mit der Node Version zu tun haben. Es scheint ein Berechtigungsproblem zu geben.
          Der Service versucht hier als anderer (priviligierter) User zu agieren, mal als root, sonst als pi. Das scheitert aber leider aus mir unbekannten Gründen.

          FAILED SU (to root) iobroker on none
          FAILED SU (to pi) iobroker on none
          

          Muss man hier irgendwie systemseitig noch Dinge wie su oder irgendwelche Gruppenberechtigungen für iobroker-User anlegen?

          EDIT: Proxmox läuft nicht. es ist ein Raspberry PI5, Raspbian 64bit

          EDIT2: und es geht hierum: Der Service startet nicht richtig.

          Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Guest last edited by

            @blubby sagte in pam_unix(su:auth): authentication failure:

            Muss man hier irgendwie systemseitig noch Dinge wie su oder irgendwelche Gruppenberechtigungen für iobroker-User anlegen?

            auf keinen Fall!
            das würde das gesamte Rechtegefüge von ioBroker aushebeln können.

            iob soll nie als root installiert oder gestartet werden, ebenso niemals iob...dosomething Befehle niemals mit sudo einleiten.

            1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @Guest last edited by

              @blubby

              Zum testen:

              Als User mal

              sudo whoami
              
              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Thomas Braun last edited by

                @thomas-braun said in pam_unix(su:auth): authentication failure:

                sudo whoami

                ➜  ~ sudo whoami
                root
                ➜  ~ whoami
                pi
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Guest last edited by

                  @blubby

                  Vollständige Ein- und Ausgaben inkl des LoginPrompts bitte

                  ? 1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User @Thomas Braun last edited by

                    @thomas-braun
                    ich weiß deine Bemühungen zu schätzen, aber vollständiger wird's hier nicht...
                    Wenn du nach sudo whoami fragst und ich damit (s.o.) antworte.

                    LoginPrompt? von meiner SSH Sitzung oder was? nee, sorry.

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @Guest last edited by Thomas Braun

                      @blubby

                      Dann halt nicht...

                      Wenn du aber ein Thema mit den Usern und deren Rechten hast muss ich sehen, mit welchem User du da hantierst.

                      ? 1 Reply Last reply Reply Quote 0
                      • ?
                        A Former User @Thomas Braun last edited by

                        @thomas-braun

                        ich versteh halt nicht warum das login Prompt von Bedeutung sein soll. aber gut

                        ~ ssh pi@pi5
                        
                        Linux pi5 6.6.63-v8-16k+ #1824 SMP PREEMPT Tue Dec  3 13:01:07 GMT 2024 aarch64
                        
                        
                        The programs included with the Debian GNU/Linux system are free software;
                        the exact distribution terms for each program are described in the
                        individual files in /usr/share/doc/*/copyright.
                        
                        Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
                        permitted by applicable law.
                        Last login: Wed Jan  8 14:30:58 2025 from 192.168.178.93
                        
                        Thomas Braun 1 Reply Last reply Reply Quote 0
                        • Thomas Braun
                          Thomas Braun Most Active @Guest last edited by

                          @blubby Das ist nicht das LogIn-Prompt...

                          Das LoginPrompt ist

                          user@host:~ $
                          

                          Also die vollständige Eingabezeile.

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @Thomas Braun last edited by

                            @thomas-braun

                            ja dann noch mal sorry, aber wie oben schon beschrieben, vollständiger wird es nicht.

                            ➜  ~
                            

                            wenn es dir hilft, hänge ich einen Screenshot an. Aber bei mir zeigt es nun mal ➜ ~ an. Verkürzte Darstellung. Der user ist pi, der host ist pi5.

                            führe ich als user pi den Befehl sudo whoami aus, dann kommt als Ergebnis wie oben gepostet: root
                            hier noch mal:

                            ➜  ~ sudo whoami
                            root
                            ➜  ~ whoami
                            pi
                            

                            Um was geht es hier bitte? Ob ich mich als root eingeloggt hab um das zu installieren? Nein, natürlich nicht. Ich kann ja lesen. Außerdem ist der root user beim Raspberry standardmäßig nicht für den ssh login aktiviert.

                            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @Guest last edited by

                              @blubby sagte in pam_unix(su:auth): authentication failure:

                              Ich kann ja lesen.

                              dann hast du ja auch sicherlich gekesen, dass man im prompt sieht, ob man im falschen Verzeichnis steht

                              ? 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Guest last edited by

                                @blubby sagte in pam_unix(su:auth): authentication failure:

                                Um was geht es hier bitte?

                                Es geht darum, welcher user da nicht richtig über pam authentifiziert werden kann.

                                Mir ist das aber eigentlich auch zu blöde.
                                Bin dann raus, wenn du eh alles besser weißt.

                                ? 1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User @Homoran last edited by

                                  @Homoran
                                  und was ist das richtige / falsche Verzeichnis? von was? in welchem Kontext? Was hat bitte ein LoginPrompt oder ein Verzeichnis mit dem system.d service iobroker.service zu tun, der nicht sauber hoch fährt?

                                  Da fühle ich mich jetzt nicht wirklich ernst genommen.

                                  Homoran 1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User @Thomas Braun last edited by

                                    @thomas-braun said in pam_unix(su:auth): authentication failure:

                                    Es geht darum, welcher user da nicht richtig über pam authentifiziert werden kann.

                                    na das steht doch im log vom iobroker.service, siehe oben.

                                    Auf dem System gibts die User
                                    iobroker (vom Skript angelegt)
                                    pi (vom OS angelegt)
                                    root (ebenso)

                                    LOG

                                    Jan 08 14:36:22 pi5 su[1541]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=root
                                    Jan 08 14:36:23 pi5 sudo[1559]: iobroker : PWD=/ ; USER=root ; COMMAND=/usr/bin/apt -v
                                    Jan 08 14:36:23 pi5 sudo[1559]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1001)
                                    Jan 08 14:36:23 pi5 sudo[1559]: pam_unix(sudo:session): session closed for user root
                                    Jan 08 14:36:23 pi5 sudo[1564]: iobroker : PWD=/ ; USER=root ; COMMAND=/usr/bin/apt list --upgradeable
                                    Jan 08 14:36:23 pi5 sudo[1564]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=1001)
                                    an 08 14:36:24 pi5 sudo[1564]: pam_unix(sudo:session): session closed for user root
                                    Jan 08 14:36:25 pi5 su[1541]: FAILED SU (to root) iobroker on none
                                    Jan 08 14:36:25 pi5 su[1575]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=root
                                    Jan 08 14:36:27 pi5 su[1575]: FAILED SU (to root) iobroker on none
                                    Jan 08 14:36:28 pi5 su[1592]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=pi
                                    Jan 08 14:36:30 pi5 su[1592]: FAILED SU (to pi) iobroker on none
                                    Jan 08 14:36:31 pi5 su[1608]: pam_unix(su:auth): authentication failure; logname= uid=1001 euid=0 tty= ruser=iobroker rhost=  user=pi
                                    Jan 08 14:36:33 pi5 su[1608]: FAILED SU (to pi) iobroker on none
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Guest last edited by

                                      @blubby
                                      Was ist denn bei dir im System noch alles modifiziert, wenn schon der prompt nicht vollständig ist?

                                      Thomas Braun ? 2 Replies Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Homoran last edited by

                                        @homoran sagte in pam_unix(su:auth): authentication failure:

                                        wenn schon der prompt nicht vollständig ist?

                                        Das liegt am lokal verwendeten Terminal. Die Darstellung kann ja angepasst werden. Machen aber die meisten user nicht.

                                        1 Reply Last reply Reply Quote 1
                                        • Thomas Braun
                                          Thomas Braun Most Active @Guest last edited by

                                          @blubby sagte in pam_unix(su:auth): authentication failure:

                                          na das steht doch im log vom iobroker.service, siehe oben.

                                          Der Service wird aber gestartet:

                                          *** FAILED SERVICES ***
                                            UNIT LOAD ACTIVE SUB DESCRIPTION
                                          
                                          0 loaded units listed.
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User @Homoran last edited by

                                            @homoran

                                            hier läuft einfach nur eine zsh. daher ist der Prompt modifiziert. https://ohmyz.sh/

                                            Ansonsten: ein Reverse Proxy (caddy), Authelia, eine statische Webseite, zwei Instanzen von VTT (nodeJS). das war es glaube ich.

                                            ? 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            826
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            8
                                            51
                                            2006
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo