{"id":15119,"date":"2024-04-26T23:21:53","date_gmt":"2024-04-26T21:21:53","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=15119"},"modified":"2024-04-26T23:21:55","modified_gmt":"2024-04-26T21:21:55","slug":"die-konsole-die-virtuelle-konsole-unter-linux-sperren","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2024\/04\/26\/die-konsole-die-virtuelle-konsole-unter-linux-sperren\/","title":{"rendered":"Die Konsole \/ die virtuelle Konsole unter Linux sperren"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nicht jeder Benutzer sperrt unter Linux seinen Desktop &#8211; zu Hause nat\u00fcrlich am wenigsten. Arbeitet man gerade dann als root &#8211; also als Administrator am Terminal, kann dann nat\u00fcrlich jeder mit administrativen Rechten am nicht gesperrten Desktop am Terminal Unfug anstellen. Meldet man sich dann gar nicht am Desktop an, sondern gleich am Login-Bildschirm \u00fcber die virtuelle Konsole (<em><kbd>Strg+Alt+F1<\/kbd> bis <kbd>F7<\/kbd><\/em>), kann man sich von dieser nur komplett ausloggen &#8211; bedeutet beim wieder Anmelden nat\u00fcrlich den Mehraufwand &#8211; Benutzernamen und Passwort angeben.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mit Vlock l\u00e4sst sich unter Linux das oder die Terminals und auch die virtuelle Konsole sperren.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Vlock installieren<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Unter auf Debian basierenden Linux-Distributionen installieren Sie diese Software wie \u00fcblich \u00fcber die Paket-Verwaltung durch das Paket &#8222;<strong>vlock<\/strong>&#8222;. Also am schnellsten als root am Terminal:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>apt update\napt install vlock<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Vlock nutzen<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Um das aktuelle Terminal (<em>die Konsole \/ Shell<\/em>) oder die virtuelle Konsole zu sperren, nutzen Sie einfach den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vlock --current<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock.jpeg\" rel=\"lightbox-0\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1024x429.jpeg\" alt=\"\" class=\"wp-image-15120\" style=\"width:463px;height:auto\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1024x429.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-150x63.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-300x126.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-768x322.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock.jpeg 1304w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Um die Konsole wieder zu entsperren, dr\u00fccken Sie die <kbd>Eingabe<\/kbd>-Taste und geben Ihr Passwort ein:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1.jpeg\" rel=\"lightbox-1\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"429\" src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1-1024x429.jpeg\" alt=\"\" class=\"wp-image-15121\" style=\"width:461px;height:auto\" srcset=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1-1024x429.jpeg 1024w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1-150x63.jpeg 150w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1-300x126.jpeg 300w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1-768x322.jpeg 768w, https:\/\/linux-bibel.at\/wp-content\/uploads\/2024\/04\/vlock-1.jpeg 1304w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Bei virtuellen Konsolen w\u00fcrde nur die aktuelle gesperrt, man k\u00f6nnte noch immer auf eine andere wechseln &#8211; also etwa mit <kbd>Strg+Alt+F2<\/kbd>. Um alle zu sperren, nutzen Sie den Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vlock --all<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Sie k\u00f6nnen auch die aktuelle virtuelle Konsole sperren und auf eine neue wechseln:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vlock --new<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Mehr bringt wie \u00fcblich die Manpage mit dem Befehl:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>man vlock<\/code><\/pre>\n<div class=\"pld-like-dislike-wrap pld-custom\">\r\n    <div class=\"pld-like-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-like-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir\" data-post-id=\"15119\" data-trigger-type=\"like\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Hoch.png\" alt=\"Gef\u00e4llt mir\" \/>\r\n            <\/a>\r\n    <span class=\"pld-like-count-wrap pld-count-wrap\">    <\/span>\r\n<\/div><div class=\"pld-dislike-wrap  pld-common-wrap\">\r\n    <a href=\"javascript:void(0)\" class=\"pld-dislike-trigger pld-like-dislike-trigger  \" title=\"Gef\u00e4llt mir nicht\" data-post-id=\"15119\" data-trigger-type=\"dislike\" data-restriction=\"cookie\" data-already-liked=\"0\">\r\n                            <img src=\"https:\/\/linux-bibel.at\/wp-content\/uploads\/2023\/12\/Daumen-Runter.png\" alt=\"Gef\u00e4llt mir nicht\" \/>\r\n            <\/a>\r\n    <span class=\"pld-dislike-count-wrap pld-count-wrap\"><\/span>\r\n<\/div><\/div>","protected":false},"excerpt":{"rendered":"<p>Nicht jeder Benutzer sperrt unter Linux seinen Desktop &#8211; zu Hause nat\u00fcrlich am wenigsten. Arbeitet man gerade dann als root &#8211; also als Administrator am Terminal, kann dann nat\u00fcrlich jeder mit administrativen Rechten am nicht gesperrten Desktop am Terminal Unfug anstellen. Meldet man sich dann gar nicht am Desktop an, sondern gleich am Login-Bildschirm \u00fcber [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15121,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[72,4],"tags":[12,7,37,6],"class_list":["post-15119","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sicherheit","category-terminal","tag-kommandozeile","tag-shell","tag-sicherheit","tag-terminal"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15119","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/comments?post=15119"}],"version-history":[{"count":1,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15119\/revisions"}],"predecessor-version":[{"id":15122,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/15119\/revisions\/15122"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/15121"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=15119"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=15119"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=15119"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}