How To Install Usermod?
Install usermod
-
Debian
apt-get install passwdClick to copy -
Ubuntu
apt-get install passwdClick to copy -
Alpine OS
apk add shadowClick to copy -
Arch Linux
pacman -S shadowClick to copy -
Kali Linux
apt-get install passwdClick to copy -
Fedora
dnf install shadow-utils-2Click to copy -
Raspbian
apt-get install passwdClick to copy
Modifies a user account.
How to use usermod?
Below are few example commands for usermod that you can use in the terminal.
Change a user's name:usermod -l newname userClick to copyAdd user to supplementary groups (mind the whitespace):usermod -a -G group1,group2 userClick to copyCreate a new home directory for a user and move their files to it:usermod -m -d /path/to/home userClick to copy
Installing usermod command is simple. just copy one of the above commands for your operating system and paste it into terminal. This command is available for Debian, Ubuntu, Alpine, Arch, Kali, Fedora and Raspbian operating systems. Once you run the command it will install the latest version of usermod 2026 package in your OS.




