01 / 08
Write into the register
You read the register last lesson. /etc/passwd was an ordinary text file.
Which means adding a line should add a user. In principle, quite so.
But do not write it in by hand. Adding one user actually needs three places to line up.
- a line in
/etc/passwd - that person's group in
/etc/group - a room at
/home/theirname, owned by them
Forget one and you get someone who can log in with no home. So you use a tool that does it all at once: adduser.