undo sudo usermod -a -G docker $USER - Stack Overflow (https://cdn.sstatic.net/Sites/stackoverflow/Img/favicon.ico?v=ec617d715196) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (Stack Overflow) (/opensearch.xml) (https://stackoverflow.com/questions/48616934/undo-sudo-usermod-a-g-docker-user) (https://cdn.sstatic.net/Shared/stacks.css?v=619122b796ae) (https://cdn.sstatic.net/Sites/stackoverflow/primary.css?v=02dcb5186b90) (Feed for question 'undo sudo usermod -a -G docker $USER') (/feeds/question/48616934) (https://cdn.sstatic.net/Shared/Channels/channels.css?v=5981bb1a5bd7) (https://accounts.google.com/gsi/style) (site logo) Join Stack Overflow By clicking “Sign up”, you agree to our (/legal/terms-of-service/public) terms of service and acknowledge you have read our (/legal/privacy-policy) privacy policy . (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) (2.0) Sign up with Google Sign up with GitHub OR (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) (1) (undefined) Email Password (8+ characters (at least 1 letter & 1 number)) Sign up Already have an account? (/users/login) Log in (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) () Skip to main content (https://stackoverflow.com) Stack Overflow (https://stackoverflow.co/) About Products (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav-bar&utm_content=overflowai) OverflowAI (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-for-teams) Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=stack-overflow-advertising) Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-ai) OverflowAI GenAI features for Teams (https://stackoverflow.co/api-solutions/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=overflow-api) OverflowAPI Train & fine-tune LLMs (https://stackoverflow.co/labs/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=labs) Labs The future of collective knowledge sharing (https://stackoverflow.co/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=about-the-company) About the company (https://stackoverflow.blog/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=top-nav&utm_content=blog) Visit the blog (Search…) () Loading… (https://stackoverflow.com) current community (https://stackoverflow.com) (Stack Overflow) Stack Overflow (https://stackoverflow.com/help) help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) chat (https://meta.stackoverflow.com) (Meta Stack Overflow) Meta Stack Overflow your communities (https://stackoverflow.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48616934%2fundo-sudo-usermod-a-g-docker-user) Sign up or (https://stackoverflow.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48616934%2fundo-sudo-usermod-a-g-docker-user) log in to customize your list. (https://stackexchange.com/sites) more stack exchange communities (https://stackoverflow.blog) company blog (Click to show search) (https://stackoverflow.com/users/login?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48616934%2fundo-sudo-usermod-a-g-docker-user) Log in (https://stackoverflow.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48616934%2fundo-sudo-usermod-a-g-docker-user) Sign up (/) Home (/questions) Questions (/tags) Tags (/users) Users (https://stackoverflow.com/jobs/companies?so_medium=stackoverflow&so_source=SiteNav) Companies Labs (/jobs?source=so-left-nav) Jobs (/beta/discussions) Discussions Collectives Communities for your favorite technologies. (/collectives-all) Explore all Collectives Teams Now available on Stack Overflow for Teams! AI features where you work: search, IDE, and chat. (https://stackoverflow.co/teams/ai/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=overflowai-learn-more) Learn more (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams) Explore Teams Teams Ask questions, find answers and collaborate at work with Stack Overflow for Teams. (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=side-bar&utm_content=explore-teams-compact) Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. (/collectives) Learn more about Collectives Teams Q&A for work Connect and share knowledge within a single location that is structured and easy to search. (https://stackoverflow.co/teams/) Learn more about Teams Get early access and see previews of new features. (https://stackoverflow.co/labs/) Learn more about Labs (https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-icon.png?v=c78bd457575a) (/questions/48616934/undo-sudo-usermod-a-g-docker-user) undo sudo usermod -a -G docker $USER (/questions/ask) Ask Question (2018-02-05 06:29:02Z) Asked 6 years, 7 months ago Modified (?lastactivity) (2018-02-05 06:35:49Z) 6 years, 7 months ago (Viewed 6,048 times) Viewed 6k times This question shows research effort; it is useful and clear (70:3:31e,16:472a422881fd0ffc,10:1725174565,16:4329c769c6020c9a,8:48616934,70c481f631e948d05f4e81c92e6cac1e0bde9c1c01e34cdaaf8306d366d2090c) 2 (This question does not show any research effort; it is unclear or not useful) (70:3:31e,16:9eb796d9ca1933c9,10:1725174565,16:f9c24555d6abbe41,8:48616934,da59755497c86ad39523b3a1a6ffe8122f46c4d429b6d619dbd47971cad004d8) Save this question. (/posts/48616934/timeline) Show activity on this post. recently I did a sudo usermod -a -G docker $USER command. It made my linux behave funny, getting stuck at finishing screen of restart, not opening chrome a single time. I would like to undo it. didn't find anywhere online how to do it. would love some help! thx in advance (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/sudo) (show questions tagged 'sudo') sudo (/q/48616934) (Short permalink to this question) Share Share a link to this question Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/48616934/edit) () Improve this question Follow (70:3:31e,16:daa988cb343f1712,10:1725174565,16:3a526e67e4e2d50b,8:48616934,feeda32f72fb1d69a657e5740516397c6e22b55f0be97ac8b6b4d7733f229525) Follow this question to receive notifications asked (2018-02-05 06:29:02Z) Feb 5, 2018 at 6:29 (/users/9126576/urizaf) (urizaf's user avatar) (/users/9126576/urizaf) urizaf urizaf (reputation score) 19 (1 silver badge) 1 1 silver badge (5 bronze badges) 5 5 bronze badges (Use comments to ask for more information or suggest improvements. Avoid answering questions in comments.) Add a comment | (Expand to show all comments on this post) 1 Answer 1 Sorted by: (/questions/48616934/undo-sudo-usermod-a-g-docker-user?answertab=scoredesc#tab-top) Reset to default (scoredesc) Highest score (default) (trending) Trending (recent votes count more) (modifieddesc) Date modified (newest first) (createdasc) Date created (oldest first) This answer is useful (70:3:31e,16:2f0d2c514bc1a1e7,10:1725174565,16:f65e8f30b5e8c473,8:48617016,2c480e81e82ddf6bee387015e3e751dd5c3c344bfb002089cdda4ba891df7240) 4 (This answer is not useful) (70:3:31e,16:72790bc22eb28796,10:1725174565,16:a403cab0ae5c2658,8:48617016,4cef08d9664246c366cc7209b9d3860a7e4a4e69f39886c21849b9e95277b400) Save this answer. (Loading when this answer was accepted…) (/posts/48617016/timeline) Show activity on this post. You can remove $USER from docker group - gpasswd -d $USER docker Ref - (https://linux.die.net/man/1/gpasswd) https://linux.die.net/man/1/gpasswd (/a/48617016) (Short permalink to this answer) Share Share a link to this answer Copy link (https://creativecommons.org/licenses/by-sa/3.0/) (The current license for this post: CC BY-SA 3.0) CC BY-SA 3.0 (/posts/48617016/edit) () Improve this answer Follow (70:3:31e,16:84a9594a113eec21,10:1725174565,16:8623d3c5766c18be,8:48617016,9841f881e24577a3e38e75117c4e870baa38550ba52a4636c1b3c0f6772bb4f6) Follow this answer to receive notifications answered (2018-02-05 06:35:49Z) Feb 5, 2018 at 6:35 (/users/3802507/vivekyad4v) (vivekyad4v's user avatar) (/users/3802507/vivekyad4v) vivekyad4v vivekyad4v (reputation score 14,461) 14.5k (5 gold badges) 5 5 gold badges (63 silver badges) 63 63 silver badges (71 bronze badges) 71 71 bronze badges 2 Thx! I already reinstalled linux. it gave me too many bugs which I didn't know to fix. – (/users/9126576/urizaf) (19 reputation) urizaf Commented (2018-02-06 08:27:55Z, License: CC BY-SA 3.0) Feb 6, 2018 at 8:27 So you're removing the user: root from the docker group ?!? – (/users/86771/svetoslav-marinov) (1,526 reputation) Svetoslav Marinov Commented (2021-02-04 09:54:32Z, License: CC BY-SA 4.0) Feb 4, 2021 at 9:54 (Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”.) Add a comment | (Expand to show all comments on this post) (48616934) (false) () Your Answer Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. (/help/gen-ai-policy) Learn more (true) Thanks for contributing an answer to Stack Overflow! Please be sure to answer the question . Provide details and share your research! But avoid … Asking for help, clarification, or responding to other answers. Making statements based on opinion; back them up with references or personal experience. To learn more, see our (/help/how-to-answer) tips on writing great answers . Draft saved Draft discarded (e2a58aec89e0105273f31cf44dffd45d868462dc661de60a7d67e669a7370ceb) Sign up or (/users/login?ssrc=question_page&returnurl=https%3a%2f%2fstackoverflow.com%2fquestions%2f48616934%2fundo-sudo-usermod-a-g-docker-user%23new-answer) log in Sign up using Google Sign up using Email and Password (false) (false) Submit Post as a guest Name () () Email Required, but never shown () () Post as a guest Name () () Email Required, but never shown () () Post Your Answer Discard By clicking “Post Your Answer”, you agree to our (https://stackoverflow.com/legal/terms-of-service/public) terms of service and acknowledge you have read our (https://stackoverflow.com/legal/privacy-policy) privacy policy .(1) Not the answer you're looking for? Browse other questions tagged (/questions/tagged/docker) (show questions tagged 'docker') docker (/questions/tagged/sudo) (show questions tagged 'sudo') sudo or (/questions/ask) ask your own question . The Overflow Blog (https://stackoverflow.blog/2024/08/30/mobile-observability-open-telemetry-embrace-ios-android-austin-emmons/?cb=1) (Mobile Observability: monitoring performance through cracked screens, old batteries, and crappy Wi-Fi) Mobile Observability: monitoring performance through cracked screens, old... Featured on Meta (Meta Stack Exchange) (https://meta.stackexchange.com/questions/401324/announcing-a-change-to-the-data-dump-process?cb=1) Announcing a change to the data-dump process (Meta Stack Exchange) (https://meta.stackexchange.com/questions/402121/bringing-clarity-to-status-tag-usage-on-meta-sites?cb=1) Bringing clarity to status tag usage on meta sites (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431331/what-does-a-new-user-need-in-a-homepage-experience-on-stack-overflow?cb=1) What does a new user need in a homepage experience on Stack Overflow? (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431399/staging-ground-reviewer-motivation?cb=1) Staging Ground Reviewer Motivation (Meta Stack Overflow) (https://meta.stackoverflow.com/questions/431273/feedback-requested-how-do-you-use-tag-hover-descriptions-for-curating-and-do-yo?cb=1) (Feedback requested: How do you use tag hover descriptions for curating and do you use the RSS feed feature?) Feedback requested: How do you use tag hover descriptions for curating and do... Related (https://stackoverflow.com/q/28626694?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/28626694/privileges-in-an-ubuntu-docker-container-after-user-statement-in-dockerfile?rq=3) Privileges in an Ubuntu Docker container after USER statement in Dockerfile (https://stackoverflow.com/q/36165401?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/36165401/docker-undo-rm-container?rq=3) Docker undo rm container (https://stackoverflow.com/q/44592372?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/44592372/usermod-uid-0-already-exists-why?rq=3) "usermod: UID '0' already exists" why? (https://stackoverflow.com/q/53936983?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/53936983/chown-returns-invalid-user-in-dockerfile?rq=3) chown returns invalid user in Dockerfile (https://stackoverflow.com/q/54363362?rq=3) (Question score (upvotes - downvotes)) 4 (https://stackoverflow.com/questions/54363362/dockerfile-unknown-flag-chown?rq=3) Dockerfile Unknown flag: chown (https://stackoverflow.com/q/57321695?rq=3) (Question score (upvotes - downvotes)) 1 (https://stackoverflow.com/questions/57321695/unable-to-run-docker-commands-without-sudo-user-in-ubuntu-16-04?rq=3) Unable to run Docker commands without sudo user in Ubuntu 16.04 (https://stackoverflow.com/q/63616665?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/63616665/revert-chmod-666-cmd-for-docker?rq=3) Revert CHMOD 666 cmd for Docker (https://stackoverflow.com/q/65427262?rq=3) (Question score (upvotes - downvotes)) 6 (https://stackoverflow.com/questions/65427262/add-sudo-permission-without-password-to-user-by-command-line?rq=3) Add sudo permission (without password ) to user by command line (https://stackoverflow.com/q/66324144?rq=3) (Question score (upvotes - downvotes)) 3 (https://stackoverflow.com/questions/66324144/cant-run-docker-as-a-normal-user?rq=3) Can't run docker as a normal user (https://stackoverflow.com/q/74112477?rq=3) (Question score (upvotes - downvotes)) 0 (https://stackoverflow.com/questions/74112477/docker-tried-to-fix-issue-made-it-much-worse?rq=3) Docker -- tried to fix issue, made it much worse (https://stackexchange.com/questions?tab=hot) Hot Network Questions (History Stack Exchange) (https://history.stackexchange.com/questions/76671/how-did-oswald-mosley-escape-treason-charges) How did Oswald Mosley escape treason charges? (Politics Stack Exchange) (https://politics.stackexchange.com/questions/88867/has-the-us-said-why-electing-judges-is-bad-in-mexico-but-good-in-the-us) Has the US said why electing judges is bad in Mexico but good in the US? (Philosophy Stack Exchange) (https://philosophy.stackexchange.com/questions/116617/how-can-moral-disagreements-be-resolved-when-the-conflicting-parties-are-guided) How can moral disagreements be resolved when the conflicting parties are guided by fundamentally different value systems? (Physics Stack Exchange) (https://physics.stackexchange.com/questions/826220/is-the-spectrum-of-hawking-radiation-identical-to-that-of-thermal-radiation) Is the spectrum of Hawking radiation identical to that of thermal radiation? (Space Exploration Stack Exchange) (https://space.stackexchange.com/questions/66793/what-is-happening-when-a-tv-satellite-stops-broadcasting-during-an-eclipse) What is happening when a TV satellite stops broadcasting during an "eclipse"? (Mathematics Stack Exchange) (https://math.stackexchange.com/questions/4965309/why-does-average-of-monte-carlo-simulations-not-hold-for-simple-problem) Why does average of Monte Carlo simulations not hold for simple problem? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723936/is-there-a-nonlinear-resistor-with-a-zero-or-infinite-differential-resistance) Is there a nonlinear resistor with a zero or infinite differential resistance? (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191103/duties-when-bringing-canadian-goods-to-us-in-luggage) Duties when bringing Canadian goods to US in luggage (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723967/what-is-the-purpose-of-these-33-ohm-series-resistors-on-the-rmii-side-of-the-lan) What is the purpose of these 33-ohm series resistors on the RMII side of the LAN8742A? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/213289/how-much-new-mathematics-should-we-learn-during-the-phd-are-the-courses-we-take) How much new mathematics should we learn during the PhD? Are the courses we take during the PhD really important? (Unix & Linux Stack Exchange) (https://unix.stackexchange.com/questions/782766/cannot-open-and-html-file-stored-on-ram-disk-with-a-browser) Cannot open and HTML file stored on RAM-disk with a browser (Travel Stack Exchange) (https://travel.stackexchange.com/questions/191100/do-passengers-transiting-in-yvr-vancouver-from-international-to-us-go-through) Do passengers transiting in YVR (Vancouver) from international to US go through Canadian immigration? (TeX - LaTeX Stack Exchange) (https://tex.stackexchange.com/questions/725514/can-we-make-a-true-phantom) Can we make a true \phantom? (Puzzling Stack Exchange) (https://puzzling.stackexchange.com/questions/128111/2-in-1-twin-puzzle) 2 in 1: Twin Puzzle (Bicycles Stack Exchange) (https://bicycles.stackexchange.com/questions/95292/felt-vr40-2020) Felt VR40 - 2020 (Super User) (https://superuser.com/questions/1854210/is-there-a-way-to-isolate-2-operating-systems-on-2-different-hard-drives) Is there a way to isolate 2 operating systems on 2 different hard drives? (Worldbuilding Stack Exchange) (https://worldbuilding.stackexchange.com/questions/261308/what-is-the-highest-apogee-of-a-satellite-in-earth-orbit) What is the highest apogee of a satellite in Earth orbit? (Aviation Stack Exchange) (https://aviation.stackexchange.com/questions/106480/has-a-tire-ever-exploded-inside-the-wheel-well) Has a tire ever exploded inside the Wheel Well? (Academia Stack Exchange) (https://academia.stackexchange.com/questions/213258/my-supervisor-wants-me-to-switch-to-another-software-programming-language-that-i) My supervisor wants me to switch to another software/programming language that I am not proficient in. What to do? (Science Fiction & Fantasy Stack Exchange) (https://scifi.stackexchange.com/questions/291223/a-short-story-about-a-boy-who-was-the-son-of-a-normal-woman-and-a-vaguely-huma) A short story about a boy who was the son of a "normal" woman and a vaguely human denizen of the deep (Cross Validated) (https://stats.stackexchange.com/questions/653675/what-does-it-mean-to-say-that-a-statistical-model-is-a-location-family) What does it mean to say that a statistical model is a location family? (Mathematica Stack Exchange) (https://mathematica.stackexchange.com/questions/306599/how-to-define-a-function-for-schmitt-trigger) How to define a function for Schmitt trigger? (Electrical Engineering Stack Exchange) (https://electronics.stackexchange.com/questions/723922/how-is-message-waiting-conveyed-to-home-pots-phone) How is message waiting conveyed to home POTS phone (Retrocomputing Stack Exchange) (https://retrocomputing.stackexchange.com/questions/30572/which-version-of-netscape-on-which-os-appears-in-the-movie-cut-2000) Which version of Netscape, on which OS, appears in the movie “Cut” (2000)? more hot questions (/feeds/question/48616934) (Feed of this question and its answers) Question feed Subscribe to RSS Question feed To subscribe to this RSS feed, copy and paste this URL into your RSS reader. (https://stackoverflow.com/feeds/question/48616934) () (https://stackoverflow.com) (https://stackoverflow.com) Stack Overflow (/questions) Questions (/help) Help (https://chat.stackoverflow.com/?tab=site&host=stackoverflow.com) Chat (https://stackoverflow.co/) Products (https://stackoverflow.co/teams/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=teams) Teams (https://stackoverflow.co/advertising/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=advertising) Advertising (https://stackoverflow.co/advertising/employer-branding/?utm_medium=referral&utm_source=stackoverflow-community&utm_campaign=footer&utm_content=talent) Talent (https://stackoverflow.co/) Company (https://stackoverflow.co/) About (https://stackoverflow.co/company/press/) Press (https://stackoverflow.co/company/work-here/) Work Here (https://stackoverflow.com/legal) Legal (https://stackoverflow.com/legal/privacy-policy) Privacy Policy (https://stackoverflow.com/legal/terms-of-service/public) Terms of Service (/contact) Contact Us Cookie Settings (https://stackoverflow.com/legal/cookie-policy) Cookie Policy (https://stackexchange.com) Stack Exchange Network (https://stackexchange.com/sites#technology) Technology (https://stackexchange.com/sites#culturerecreation) Culture & recreation (https://stackexchange.com/sites#lifearts) Life & arts (https://stackexchange.com/sites#science) Science (https://stackexchange.com/sites#professional) Professional (https://stackexchange.com/sites#business) Business (https://api.stackexchange.com/) API (https://data.stackexchange.com/) Data (https://stackoverflow.blog?blb=1) Blog (https://www.facebook.com/officialstackoverflow/) Facebook (https://twitter.com/stackoverflow) Twitter (https://linkedin.com/company/stack-overflow) LinkedIn (https://www.instagram.com/thestackoverflow) Instagram Site design / logo © 2024 Stack Exchange Inc; user contributions licensed under (https://stackoverflow.com/help/licensing) CC BY-SA . rev 2024.8.29.14628