From dba27a6478bf96537f9bb5940dfe7c21710f9906 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Thu, 7 Jul 2022 08:54:39 +0200 Subject: [PATCH] (Grav GitSync) Automatic Commit from RealStickman --- pages/02.linux/03.users-and-groups/default.en.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pages/02.linux/03.users-and-groups/default.en.md b/pages/02.linux/03.users-and-groups/default.en.md index b22d4aa..0edf1cc 100644 --- a/pages/02.linux/03.users-and-groups/default.en.md +++ b/pages/02.linux/03.users-and-groups/default.en.md @@ -23,6 +23,11 @@ full name -> -c Example more complicated usage: `# useradd -m -c "Bruno Huber" -s /bin/bash -G sudo,systemd-journal bruhub` +### Remove user +The command `userdel` can be used to remove users from a system. +Using it with the `-r` additionally deletes the user home directory and mail spool. +`# userdel -r (user) + ### Add user to groups Add user to more groups: `# usermod -a -G (group1),(group2) (user)`