探花大神

Import Linux Users with a Shell Script

You can auto-import your existing Linux users into 探花大神 via a script which leverages the 探花大神 API and a 探花大神 commands.

Once you've聽downloaded the JC_UserImport.sh script from , modify these three things:

  1. Your API Key: Used to access your 探花大神 account to identify users already added, and to add new users to it.
  2. userAddEmailMap: A simple bash here-document that maps Linux usernames to their email accounts for all users. When they're found on one of your servers, that account is added to 探花大神.
  3. userIgnoreList: A list of user accounts on your servers that you do not want added to 探花大神.

Once the script is prepared, you can leverage聽a 探花大神 command聽to run it against your systems.聽See Get Started: Commands.

Next, look at the command results details for each server to see which users were automatically added, which already existed within 探花大神, and which were found, but not in 探花大神, or in either the userAddEmailMap or userIgnoreList.

You can run the script as many times as you like, modifying the userAddEmailMap or userIgnoreList as you go until all your users are imported.

Back to Top

Still Have Questions?

If you cannot find an answer to your question in our FAQ, you can always contact us.

Submit a Case