How To Install Usermod?
Install usermod
-
Debian
apt-get install passwd
Click to copy -
Ubuntu
apt-get install passwd
Click to copy -
Alpine OS
apk add shadow
Click to copy -
Arch Linux
pacman -S shadow
Click to copy -
Kali Linux
apt-get install passwd
Click to copy -
Fedora
dnf install shadow-utils-2
Click to copy -
Raspbian
apt-get install passwd
Click 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 user
Click to copyAdd user to supplementary groups (mind the whitespace):usermod -a -G group1,group2 user
Click to copyCreate a new home directory for a user and move their files to it:usermod -m -d /path/to/home user
Click 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 2023 package in your OS.