Question

linux worklet - create user , variable, prompt for information

  • 24 October 2023
  • 1 reply
  • 20 views

Badge

Hi all, I’m a newbie to automox. I was trying to write a worklet to create a linux os account/s. To do that that would require the worklet to prompt for name to use for a variable. Does anyone have any experience with this type of task?


1 reply

Sorry if this reply is too late to be useful.

Worklets really don’t have a way of prompting an end user for data. If you’re set on using a worklet for this, you would probably need to have it read from a text file or some other data source, then run through a series of checks to make sure each user has an account, home directory, appropriate permissions on the home directory, etc.

This could be done with a bash script, but I don’t think I would use a worklet for it.

Reply