AutomoxAutomox

linux worklet - create user , variable, prompt for information

bfussy
October 24, 2023 at 3:30 pm UTC
#Worklets#linux

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?

This discussion is archived and closed to replies. Continue it in the Automox Community Slack.

Discuss on Slack

Replies (1)

matt_ornNovember 8, 2023
#1

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.