Want to create multiple user in Linux, but first need to check user already exists or not,if not exist the user get created.
Asked
Active
Viewed 272 times
1 Answers
1
Take a look at this:
https://linux.die.net/man/8/newusers
It will allow you to create new users in batch from a file.
Raman Sailopal
- 146
-
The command to add a new user is distribution dependent and also the question states how does the Masoom check if a user exists before creating. This partly answers the question. – fswings Oct 22 '20 at 20:20
adduseroruseraddcommands. See eg useradd(8) and passwd(5) – Basile Starynkevitch Oct 13 '20 at 04:22man adduserin a console, in your system, and have look at https://superuser.com/questions/547966/whats-the-difference-between-adduser-and-useradd – F. Hauri - Give Up GitHub Oct 13 '20 at 07:19