{"id":814,"date":"2023-09-03T17:43:35","date_gmt":"2023-09-03T15:43:35","guid":{"rendered":"https:\/\/linux-bibel.at\/?p=814"},"modified":"2023-10-02T20:43:34","modified_gmt":"2023-10-02T18:43:34","slug":"user-nicht-mehr-in-gruppe-sudo","status":"publish","type":"post","link":"https:\/\/linux-bibel.at\/index.php\/2023\/09\/03\/user-nicht-mehr-in-gruppe-sudo\/","title":{"rendered":"User nicht mehr in Gruppe sudo"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Vieles ist sehr schnell passiert. Ganze System wurden schon gekillt, weil ein kleiner Befehl ratzeputz die sch\u00f6ne Linuxinstallation gel\u00f6scht hat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ein User, der z.B. ein Ubuntusystem unterh\u00e4lt, hat arge Probleme, wenn er nicht mehr in der Gruppe&nbsp;<strong>sudo<\/strong>&nbsp;ist. So geschah es heute!&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linux-bibel-oesterreich.at\/images\/smilies\/icon_eek.gif\" alt=\":shock:\" width=\"15\" height=\"17\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Dieser Befehl<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -G vboxsf eseluser<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">hat meinen sch\u00f6nen User aus der Gruppe sudo entfernt. Bl\u00f6d. Einfach nur bl\u00f6d.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Was ist zu tun? Ein System wegen so einer Eselei neu aufsetzen ist auch nicht der Weisheit letzter Schluss. Schlie\u00dflich sind wir mit Linux unterwegs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nat\u00fcrlich gibt es M\u00f6glichkeiten, dem hierseligen User wieder zu root-Rechten zu verhelfen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Und das geht dann wie folgt (Neustart erforderlich):<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 1<\/strong><br>Bei Start die <kbd>Shift<\/kbd>-Taste oder <kbd>F12<\/kbd> dr\u00fccken, um ins Boot-Men\u00fc zu gelangen (oder eine andere, je nach Ger\u00e4t).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 2<\/strong><br>Im Boot-Men\u00fc den Eintrag&nbsp;<strong>Erweiterte Optionen f\u00fcr Ubuntu<\/strong>&nbsp;ausw\u00e4hlen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 3<\/strong><br>Anschlie\u00dfend den Men\u00fc-Eintrag mit dem&nbsp;<strong>Recovery-Mode<\/strong>&nbsp;ausw\u00e4hlen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 4<\/strong><br>Im Wiederherstellungsmen\u00fc die Option&nbsp;<strong>root<\/strong>&nbsp;ausw\u00e4hlen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 5<\/strong><br>Die nachfolgende Information mit <kbd>ENTER<\/kbd> best\u00e4tigen, um auf die Konsole zu gelangen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 6<\/strong><br>Als allm\u00e4chtiger root folgenden Befehl absetzen:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo usermod -aG sudo eseluser<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt 7<\/strong><br>Das System am besten neuen starten und schon kann der Esel sein System wieder ordentlich administrieren.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Ganz wichtig ist n\u00e4mlich der kleine Buchstabe&nbsp;<strong>a<\/strong>. Dieser steht f\u00fcr append, also f\u00fcr anf\u00fcgen bzw. anh\u00e4ngen. Diese Option sorgt daf\u00fcr, dass die neue Gruppe f\u00fcr den User an die bestehenden Gruppen angeh\u00e4ngt und der User nicht etwa aus anderen Gruppen vertrieben wird, z.B. sudo.&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linux-bibel-oesterreich.at\/images\/smilies\/icon_rolleyes.gif\" alt=\":roll:\" width=\"15\" height=\"17\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wie gut, dass mir diese Eselei in einer&nbsp;<strong>virtuellen Maschine<\/strong>&nbsp;geschehen ist.&nbsp;<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.linux-bibel-oesterreich.at\/images\/smilies\/icon_lol.gif\" alt=\":lol:\" width=\"15\" height=\"17\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Iaaah<\/p>\n\n\n\n<p class=\"has-light-green-cyan-color has-text-color wp-block-paragraph\">Verfasst von Bommo<\/p>\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=\"814\" 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\">1    <\/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=\"814\" 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>Vieles ist sehr schnell passiert. Ganze System wurden schon gekillt, weil ein kleiner Befehl ratzeputz die sch\u00f6ne Linuxinstallation gel\u00f6scht hat. Ein User, der z.B. ein Ubuntusystem unterh\u00e4lt, hat arge Probleme, wenn er nicht mehr in der Gruppe&nbsp;sudo&nbsp;ist. So geschah es heute!&nbsp; Dieser Befehl hat meinen sch\u00f6nen User aus der Gruppe sudo entfernt. Bl\u00f6d. Einfach nur [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":763,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,4],"tags":[15],"class_list":["post-814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-system","category-terminal","tag-system"],"_links":{"self":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/814","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=814"}],"version-history":[{"count":2,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/814\/revisions"}],"predecessor-version":[{"id":9705,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/posts\/814\/revisions\/9705"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media\/763"}],"wp:attachment":[{"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/media?parent=814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/categories?post=814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linux-bibel.at\/index.php\/wp-json\/wp\/v2\/tags?post=814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}