Forrest logo
back to the adduser tool

adduser:tldr:d9117

adduser: Create a new user without a home directory.
$ adduser --no-create-home ${username}
try on your machine

The command "adduser --no-create-home ${username}" is used to create a new user account on a Linux system without creating a home directory for that user.

Here's an explanation of each component of the command:

  • "adduser": This is the command used to add a new user account on the system.

  • "--no-create-home": This is an option that tells the "adduser" command not to create a home directory for the new user. By default, when a new user is added, a home directory with the same name as the user is created to store their personal files and configurations. However, using this option, the home directory will not be created.

  • "${username}": This is a placeholder for the username parameter. You need to replace "${username}" with the desired username for the new user account. For example, if you want to create a user named "john", you would replace "${username}" with "john".

In summary, running the "adduser --no-create-home ${username}" command will create a new user account on the system without creating a home directory for that user.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adduser tool