BITFOX® | LÖSUNGEN | SERVICE | LOGIN | BLOG | KONTAKT

Donnerstag, 28. Januar 2021

rpm-Pakete und Versionen

Das BSI warnt grade vor alten sudo-Versionen auf unixoiden Betriebssystemen:
Einfache Benutzer können Root-Zugriff erlangen, sogar wenn diese Benutzer nicht einmal in der /etc/sudoers erwähnt sind. Auch Accounts ohne Shell bzw. lediglich hinterlegtem Kontext sind somit gefährlich.
"Also - mal eben schauen", wie "neu" das sudo auf der Maschine ist.

rpm -qi $( rpm -qf "/bin/sudo" )

Aber geht's noch schöner? Klar - etwas CommandLine-Zauber... :-)

f="/bin/sudo" ; rpm -qf "${f}"  --qf '%{name} %{version}-%{release}%{arch} from '; env TZ=Europe/Berlin date -d "@$( rpm -qf "${f}" --qf '%{buildtime}' )" "+%Y-%m-%d %H:%M:%S %Z"

Nachtrag: %{buldtime:date} Zeigt bereits einen Datumsstring, welcher jedoch nicht wirklich ansehnlich ist.

1 Kommentar:

daineraczynski hat gesagt…

The Shops At The Shops At The Shops At The Shops At The Shops
Welcome to Shops at The Shops At The Shops At The 군포 출장마사지 Shops At 목포 출장샵 The Shops At The Shops At The Shops. We offer you the 김포 출장마사지 finest in the Shops at the 전라남도 출장마사지 Shops at The 제천 출장마사지

Aktuelles