{"id":8598,"date":"2021-07-20T12:56:39","date_gmt":"2021-07-20T12:56:39","guid":{"rendered":"https:\/\/linuxways.net\/?p=8598"},"modified":"2021-07-20T12:56:39","modified_gmt":"2021-07-20T12:56:39","slug":"how-to-add-and-remove-users-in-debian","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-add-and-remove-users-in-debian\/","title":{"rendered":"How to Add and Remove Users in Debian"},"content":{"rendered":"<p>The user\u2019s account management in which adding and removing a user from the Linux system is included in the responsibilities of the Linux administrator. Administrators can perform this job using both ways either using the command line or using the graphical environment. We will explain both two different methods in this article for adding and removing a user from the Debian 10 system.<\/p>\n<h2><strong>Prerequisites<\/strong><\/h2>\n<p>To add or remove a user from the Debian system, the user needs administrative or sudo privileges.<\/p>\n<h2><strong>Add user through the command line on Debian 10<\/strong><\/h2>\n<p>Open the terminal using the start menu of your Debian system. Use the below-mentioned syntax to add a user to your system:<\/p>\n<pre>$ sudo adduser UserName<\/pre>\n<p>For example, fro adding the new user \u2018karim\u2019 on the Debian system, the above command will apply into the following form:<\/p>\n<pre>$ sudo adduser karim<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1086\" height=\"223\" class=\"wp-image-8599\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-613.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-613.png 1086w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-613-300x62.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-613-1024x210.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-613-768x158.png 768w\" sizes=\"auto, (max-width: 1086px) 100vw, 1086px\" \/><\/p>\n<p>On the execution of the above-mentioned command, you will be asked to enter the sudo password. Enter \u2018sudo\u2019 account password and then hit \u2018Enter\u2019. Enter the new password for the new user and for confirmation, re-type the password again. The message will show on the terminal window that \u2018password is updated successfully. Now, enter the remaining necessary information of the user such as the user\u2019s full name, room number, phone details, etc. after that, confirm these details by pressing the \u2018y\u2019 if all information is correct and then press \u2018Enter\u2019.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1105\" height=\"333\" class=\"wp-image-8600\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-614.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-614.png 1105w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-614-300x90.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-614-1024x309.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-614-768x231.png 768w\" sizes=\"auto, (max-width: 1105px) 100vw, 1105px\" \/><\/p>\n<p>The new user is now created on Debian 10 system.\u00a0 For verification, access the Debian 10 user\u2019s management section.<\/p>\n<h2><strong>Add user using the Graphical interface o Debian 10<\/strong><\/h2>\n<p>To add a new GUI, click on the Debian start menu and choose the setting icon from the displaying items list.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"671\" height=\"341\" class=\"wp-image-8601\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-615.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-615.png 671w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-615-300x152.png 300w\" sizes=\"auto, (max-width: 671px) 100vw, 671px\" \/><\/p>\n<p>Now, type \u2018users\u2019 in the search bar. The following displayed user\u2019s section will show on the desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"774\" height=\"415\" class=\"wp-image-8602\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-616.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-616.png 774w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-616-300x161.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-616-768x412.png 768w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/p>\n<p>Click on the \u2018Unlock\u2019 to add a new user, which is also shown in the following displayed image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"756\" class=\"wp-image-8603\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-617.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-617.png 998w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-617-300x227.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-617-768x582.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/p>\n<p>The following authentication dialog will display on the desktop window. Type the administrator password for the authentication and click on the \u2018authenticate\u2019 button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"413\" class=\"wp-image-8604\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-618.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-618.png 622w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-618-300x199.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/p>\n<p>Now, click on the \u2018Add user\u2019 button to add a new user to the Debian 10 system.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1216\" height=\"852\" class=\"wp-image-8605\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-619.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-619.png 1216w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-619-300x210.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-619-1024x717.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-619-768x538.png 768w\" sizes=\"auto, (max-width: 1216px) 100vw, 1216px\" \/><\/p>\n<p>Enter the required information for adding a new user on the displaying the dialog such as the account type, users full name, password, etc. After giving the all information, click on the \u2018Add\u2019 option.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"781\" class=\"wp-image-8606\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-620.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-620.png 677w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-620-260x300.png 260w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/p>\n<p>You will see on the displaying window that the user is added to your system successfully.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1211\" height=\"842\" class=\"wp-image-8607\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-621.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-621.png 1211w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-621-300x209.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-621-1024x712.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-621-768x534.png 768w\" sizes=\"auto, (max-width: 1211px) 100vw, 1211px\" \/><\/p>\n<h2><strong>Remove user through the command line or Terminal from Debian 10<\/strong><\/h2>\n<p>To remove a user through the terminal, use the below-given syntax:<\/p>\n<pre>$ sudo deluser {username}<\/pre>\n<p>Enter the user name that you want to remove from the system. For example, to remove a user \u2018karimbuzdar\u2019 from the Debian system.<\/p>\n<pre>$ sudo deluser karimbuzdar<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"153\" class=\"wp-image-8608\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-622.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-622.png 917w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-622-300x50.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-622-768x128.png 768w\" sizes=\"auto, (max-width: 917px) 100vw, 917px\" \/><\/p>\n<p>For removing a user along with the user\u2019s directory then, type the below-mentioned command:<\/p>\n<pre>$ sudo deluser --remove-home username<\/pre>\n<p>To remove the user along with all associated files then, use the below-given command:<\/p>\n<pre>$ sudo deluser --remove-all-files username<\/pre>\n<p>Change the user name with your own name of the user that wants to remove.<\/p>\n<h2><strong>Remove user using GUI on Debian 10<\/strong><\/h2>\n<p>To remove a user from your Debian system, click on the \u2018settings\u2019 icon.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"352\" class=\"wp-image-8609\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-623.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-623.png 558w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-623-300x189.png 300w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/p>\n<p>Type \u2018users\u2019 in the search bar to search the user\u2019s section. The following user\u2019s window should display on the desktop:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"777\" height=\"351\" class=\"wp-image-8610\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-624.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-624.png 777w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-624-300x136.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-624-768x347.png 768w\" sizes=\"auto, (max-width: 777px) 100vw, 777px\" \/><\/p>\n<p>Click on the \u2018Unlock\u2019 button to remove a user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1220\" height=\"850\" class=\"wp-image-8611\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-625.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-625.png 1220w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-625-300x209.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-625-1024x713.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-625-768x535.png 768w\" sizes=\"auto, (max-width: 1220px) 100vw, 1220px\" \/><\/p>\n<p>Enter the sudo or administrative login account password to authenticate the user and then choose the \u2018authenticate\u2019 button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"413\" class=\"wp-image-8612\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-626.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-626.png 622w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-626-300x199.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/p>\n<p>Now, choose the user that you want to remove from the Debian system and then click on the \u2018Remove user\u2019 button to remove this user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1229\" height=\"859\" class=\"wp-image-8613\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-627.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-627.png 1229w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-627-300x210.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-627-1024x716.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-627-768x537.png 768w\" sizes=\"auto, (max-width: 1229px) 100vw, 1229px\" \/><\/p>\n<p>The following prompt will show the displaying window. If you want to remove all associated files with this user then, click on the \u2018Delete files\u2019 button to remove the user.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1222\" height=\"857\" class=\"wp-image-8614\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-628.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-628.png 1222w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-628-300x210.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-628-1024x718.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/07\/word-image-628-768x539.png 768w\" sizes=\"auto, (max-width: 1222px) 100vw, 1222px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>We have seen in this article how you can easily remove or add a new user to your Debian 10 system. We have elaborated both methods for doing this job either by using the Terminal or through the Debian GUI.<\/p>\n<p>&nbsp;<\/p>","protected":false},"excerpt":{"rendered":"<p>The user\u2019s account management in which adding and removing a user from the Linux system is included in the responsibilities of the Linux administrator. Administrators can perform this&hellip;<\/p>","protected":false},"author":1,"featured_media":8632,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17,89],"class_list":["post-8598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","tag-debian-10","tag-users"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=8598"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/8598\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/8632"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=8598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=8598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=8598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}