{"id":3287,"date":"2017-03-04T17:57:16","date_gmt":"2017-03-04T16:57:16","guid":{"rendered":"http:\/\/thomashartung.it\/?p=15"},"modified":"2021-04-06T19:25:49","modified_gmt":"2021-04-06T17:25:49","slug":"add-user-to-sudo","status":"publish","type":"post","link":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/","title":{"rendered":"Add user to sudo"},"content":{"rendered":"

To be able to log-in as NOT root and still be able to execute commands with root rights we need sudo<\/strong>. Users who should be able to use sudo must be part of the sudo-group. So we install sudo<\/p>\n

sudo apt-get install sudo<\/pre>\n

and add the user to the group sudo with the following command:<\/p>\n

sudo adduser <username> sudo<\/pre>\n

The reason behind it is, that it’s more secure to login as a “normal” user and block root access altogether – or at least over ssh.<\/p>\n","protected":false},"excerpt":{"rendered":"

To be able to log-in as NOT root and still be able to execute commands with root rights we need sudo. Users who should be able to use sudo must be part of the sudo-group. So we install sudo sudo apt-get install sudo and add the user to the group sudo with the following command: […]<\/p>\n","protected":false},"author":1,"featured_media":4502525,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[174],"tags":[],"yoast_head":"\nAdd user to sudo - AHOI 7<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Add user to sudo - AHOI 7\" \/>\n<meta property=\"og:description\" content=\"To be able to log-in as NOT root and still be able to execute commands with root rights we need sudo. Users who should be able to use sudo must be part of the sudo-group. So we install sudo sudo apt-get install sudo and add the user to the group sudo with the following command: […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/\" \/>\n<meta property=\"og:site_name\" content=\"AHOI 7\" \/>\n<meta property=\"article:author\" content=\"thomas.hartung\" \/>\n<meta property=\"article:published_time\" content=\"2017-03-04T16:57:16+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-04-06T17:25:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1357\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@target_tom\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wp.hartung.blog\/#website\",\"url\":\"https:\/\/wp.hartung.blog\/\",\"name\":\"AHOI 7\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wp.hartung.blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#primaryimage\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg\",\"contentUrl\":\"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg\",\"width\":1920,\"height\":1357},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#webpage\",\"url\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/\",\"name\":\"Add user to sudo - AHOI 7\",\"isPartOf\":{\"@id\":\"https:\/\/wp.hartung.blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#primaryimage\"},\"datePublished\":\"2017-03-04T16:57:16+00:00\",\"dateModified\":\"2021-04-06T17:25:49+00:00\",\"author\":{\"@id\":\"https:\/\/wp.hartung.blog\/#\/schema\/person\/ddf9979c78804a13e09deb428622b731\"},\"breadcrumb\":{\"@id\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Startseite\",\"item\":\"https:\/\/wp.hartung.blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Add user to sudo\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/wp.hartung.blog\/#\/schema\/person\/ddf9979c78804a13e09deb428622b731\",\"name\":\"Tom\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/wp.hartung.blog\/#personlogo\",\"inLanguage\":\"de-DE\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c50ddda1bdce51a3b96392b456c89a7b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c50ddda1bdce51a3b96392b456c89a7b?s=96&d=mm&r=g\",\"caption\":\"Tom\"},\"description\":\"Entspannter Typ\",\"sameAs\":[\"http:\/\/www.thomashartung.com\",\"thomas.hartung\",\"https:\/\/twitter.com\/target_tom\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Add user to sudo - AHOI 7","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/","og_locale":"de_DE","og_type":"article","og_title":"Add user to sudo - AHOI 7","og_description":"To be able to log-in as NOT root and still be able to execute commands with root rights we need sudo. Users who should be able to use sudo must be part of the sudo-group. So we install sudo sudo apt-get install sudo and add the user to the group sudo with the following command: […]","og_url":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/","og_site_name":"AHOI 7","article_author":"thomas.hartung","article_published_time":"2017-03-04T16:57:16+00:00","article_modified_time":"2021-04-06T17:25:49+00:00","og_image":[{"width":1920,"height":1357,"url":"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_creator":"@target_tom","twitter_misc":{"Verfasst von":"Tom"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/wp.hartung.blog\/#website","url":"https:\/\/wp.hartung.blog\/","name":"AHOI 7","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wp.hartung.blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"ImageObject","@id":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#primaryimage","inLanguage":"de-DE","url":"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg","contentUrl":"https:\/\/wp.hartung.blog\/wp-content\/uploads\/matrix-356024_1920.jpg","width":1920,"height":1357},{"@type":"WebPage","@id":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#webpage","url":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/","name":"Add user to sudo - AHOI 7","isPartOf":{"@id":"https:\/\/wp.hartung.blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#primaryimage"},"datePublished":"2017-03-04T16:57:16+00:00","dateModified":"2021-04-06T17:25:49+00:00","author":{"@id":"https:\/\/wp.hartung.blog\/#\/schema\/person\/ddf9979c78804a13e09deb428622b731"},"breadcrumb":{"@id":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wp.hartung.blog\/add-user-to-sudo\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wp.hartung.blog\/add-user-to-sudo\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Startseite","item":"https:\/\/wp.hartung.blog\/"},{"@type":"ListItem","position":2,"name":"Add user to sudo"}]},{"@type":"Person","@id":"https:\/\/wp.hartung.blog\/#\/schema\/person\/ddf9979c78804a13e09deb428622b731","name":"Tom","image":{"@type":"ImageObject","@id":"https:\/\/wp.hartung.blog\/#personlogo","inLanguage":"de-DE","url":"https:\/\/secure.gravatar.com\/avatar\/c50ddda1bdce51a3b96392b456c89a7b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c50ddda1bdce51a3b96392b456c89a7b?s=96&d=mm&r=g","caption":"Tom"},"description":"Entspannter Typ","sameAs":["http:\/\/www.thomashartung.com","thomas.hartung","https:\/\/twitter.com\/target_tom"]}]}},"_links":{"self":[{"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/posts\/3287"}],"collection":[{"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/comments?post=3287"}],"version-history":[{"count":1,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/posts\/3287\/revisions"}],"predecessor-version":[{"id":3345,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/posts\/3287\/revisions\/3345"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/media\/4502525"}],"wp:attachment":[{"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/media?parent=3287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/categories?post=3287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.hartung.blog\/wp-json\/wp\/v2\/tags?post=3287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}