Ich hab es jetzt mal nachgestellt, habe epsonscan2 grafisch als User stephan gestartet, das erzeugt 1 Datei und ein Verzeichnis:
ls -al /tmp/ | grep -Ei 'test|epson'
drwxr-xr-x 2 stephan users 4096 11. Sep 12:15 epsonWork
-rw-r--r-- 1 stephan users 112080 11. Sep 12:15 test.txt
Jetzt grafisch als User stephan abgemeldet und dann grafisch als User ich angemeldet.
3 Konsolen/Terminals geöffnet, im ersten Terminal:
ich@linux64:~> ls -al /tmp/ | grep -Ei 'test|epson'
drwxr-xr-x 2 stephan users 4096 11. Sep 12:15 epsonWork
-rw-r--r-- 1 stephan users 112080 11. Sep 12:15 test.txt
Im 2. Terminal als root ausgeführt:
ich@linux64:~> su
Passwort:
linux64:/home/ich # journalctl -f
Sep 11 16:18:42 linux64 konsole[6268]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
Sep 11 16:18:42 linux64 konsole[6268]: dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
Sep 11 16:19:17 linux64 kded5[5684]: QDBusAbstractAdaptor: Cannot relay signal KDEDModule::moduleDeleted(KDEDModule*): Pointers are not supported: KDEDModule*
Sep 11 16:19:30 linux64 su[6387]: pam_kwallet5(su:auth): pam_kwallet5: pam_sm_authenticate
Sep 11 16:19:30 linux64 su[6387]: pam_kwallet5(su:auth): pam_kwallet5: we were already executed
Sep 11 16:19:35 linux64 su[6387]: (to root) ich on pts/3
Sep 11 16:19:35 linux64 su[6387]: pam_kwallet5(su:setcred): pam_kwallet5: pam_sm_setcred
Sep 11 16:19:35 linux64 su[6387]: pam_unix(su:session): session opened for user root by ich(uid=1001)
Sep 11 16:19:35 linux64 su[6387]: pam_kwallet5(su:session): pam_kwallet5: pam_sm_open_session
Sep 11 16:19:35 linux64 su[6387]: pam_kwallet5(su:session): pam_kwallet5: we were already executed
Alles anzeigen
Im 3. Terminal nun als User ausgeführt:
ich@linux64:~> epsonscan2
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
Das erzeugt folgenden dump im 2. Terminal (journalctl -f):
Sep 11 16:19:55 linux64 kernel: es2netif[6437]: segfault at c0 ip 00007f0b37679d6e sp 00007ffc66da0fa0 error 4 in libc.so.6[7f0b37600000+1fb000] likely on CPU 14 (core 6, socket 0)
Sep 11 16:19:55 linux64 kernel: Code: 41 55 41 89 cd 41 54 49 89 d4 55 48 89 f5 53 48 89 fb 48 81 ec f8 00 00 00 64 48 8b 04 25 28 00 00 00 48 89 84 24 e8 00 00 00 <8b> 87 c0 00 00 00 85 c0 0f 85 a4 00 00 00 c7 87 c0 00 00 00 ff ff
Sep 11 16:19:55 linux64 systemd[1]: Started Process Core Dump (PID 6438/UID 0).
Sep 11 16:19:55 linux64 systemd[1]: Started Pass systemd-coredump journal entries to relevant user for potential DrKonqi handling.
Sep 11 16:19:55 linux64 systemd-coredump[6439]: [🡕] Process 6437 (es2netif) of user 1001 dumped core.
Stack trace of thread 6437:
#0 0x00007f0b37679d6e __vfprintf_internal (libc.so.6 + 0x79d6e)
#1 0x00007f0b3773d3df __fprintf_chk (libc.so.6 + 0x13d3df)
#2 0x000000000040998c main (es2netif + 0x998c)
#3 0x00007f0b37640e6c __libc_start_call_main (libc.so.6 + 0x40e6c)
#4 0x00007f0b37640f35 __libc_start_main@@GLIBC_2.34 (libc.so.6 + 0x40f35)
#5 0x0000000000409e01 _start (es2netif + 0x9e01)
ELF object binary architecture: AMD x86-64
Sep 11 16:19:55 linux64 systemd[1]: systemd-coredump@2-6438-0.service: Deactivated successfully.
Sep 11 16:19:55 linux64 drkonqi-coredump-processor[6440]: "/usr/lib64/epsonscan2/non-free-exec/es2netif" 6437 "/var/lib/systemd/coredump/core.es2netif.1001.ff1bad24a71a421bbcd9fe7cb440f77e.6437.1757600395000000.zst"
Sep 11 16:19:55 linux64 systemd[1]: drkonqi-coredump-processor@2-6438-0.service: Deactivated successfully.
Sep 11 16:19:55 linux64 systemd[5567]: Started Launch DrKonqi for a systemd-coredump crash (PID 6440/UID 0).
Sep 11 16:19:55 linux64 drkonqi-coredump-launcher[6449]: Unable to find file for pid 6437 expected at "kcrash-metadata/6437.ini"
Sep 11 16:19:55 linux64 drkonqi-coredump-launcher[6449]: QFile::remove: Empty or null file name
Sep 11 16:19:55 linux64 drkonqi-coredump-launcher[6449]: Nothing handled the dump :O
Alles anzeigen
Also wie luigi auch schon bemerkte einen segfault. Daher im 3. Terminal das Programm epsonscan2 mit STRG+C abbrechen.
Nun im ersten Fenster (ls -al) eingegeben:
ich@linux64:~> rm -rf /tmp/epsonWork
rm: das Entfernen von '/tmp/epsonWork' ist nicht möglich: Die Operation ist nicht erlaubt
Ist ja auch klar, das Verzeichnis und die Datei gehören dem User stephan und nicht dem User ich:
drwxr-xr-x 2 stephan users 4096 11. Sep 12:15 epsonWork
-rw-r--r-- 1 stephan users 112080 11. Sep 12:15 test.txt
Also in diesem Terminal zu root werden und löschen, sowie kontrollieren ob das Verzeichnis oder die Datei noch vorhanden ist:
ich@linux64:~> su
Passwort:
linux64:/home/ich # rm -rf /tmp/epsonWork
linux64:/home/ich # rm /tmp/test.txt
linux64:/home/ich # ls -al /tmp/ | grep -Ei 'test|epson'
linux64:/home/ich #
Jetzt wieder ins 3. Terminal wechseln und dort noch einmal versuchen:
ich@linux64:~> epsonscan2
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
dpi is invalid got from xsettings(Qt/DPI/ and Xft/DPI), fallback to get dpi from QXcbScreen::logicalDpi()
Und Voila:
