Bash script how to add a new user?
1

Asked By: Rahul Wiegand
Date created: Thu, Nov 18, 2021 7:24 AM
Date updated: Thu, Jul 21, 2022 5:44 PM
Content
Top best answers to the question «Bash script how to add a new user»
- To create a new user account, invoke the useradd command followed by the name of the user. For example to create a new user named username you would run: sudo useradd username When executed without any option, useradd creates a new user account using the default settings specified in the /etc/default/useradd file.