I usually add a user using adduser command. But are there any other steps to add a user to a system without using useradd/adduser?
how can we change the default uid range?
In addition to the more widespread useradd, Debian based systems also contain an additional adduser command which provides a higher level interface for adding users and some related tasks.
I was browsing through some Linux questions and saw this interesting question.
What steps to add a user to a system without using useradd/adduser?
The one possible way that comes to my mind is,
Add an entry for the user in /etc/passwd file.
Add an entry for the group in /etc/group file.
Create the home directory for the added user.
Set the new user password using the passwd command.