Is it possible to import users by using CSV file? or something like a LDAP connection to import all users?
Ubuntu – Import users from CSV file
csvuser-managementusers
csvuser-managementusers
Is it possible to import users by using CSV file? or something like a LDAP connection to import all users?
Best Answer
There's an app for that! The
newusers
tool which is part of thepasswd
package is designed to batch create users:You will need to create a file with this format:
Many of these can be ignored and the default values will be used. You only need to specify the username and password. For example:
If I save that as
users.txt
and run this command:The users are created: