{"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 and add the user to the group sudo with the following command:<\/p>\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":"\nsudo apt-get install sudo<\/pre>\n
sudo adduser <username> sudo<\/pre>\n