HOW TO CREATE NEW USERS IN LINUX USING BASH?

Linux

1 answer

Answer

1048075

2026-04-10 14:50

+ Follow

Linux
Linux

To create new users in Linux using Bash, you can use the useradd command followed by the username. For example, sudo useradd newusername will create a user named "newusername." To set a passWord for the new user, use the command sudo passwd newusername and follow the prompts. Additionally, you can specify options like user home directory or shell by using flags such as -m for creating a home directory or -s for setting the default shell.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.