postal icon indicating copy to clipboard operation
postal copied to clipboard

Creating Users

Open eveandcats opened this issue 9 years ago • 3 comments

Hi,

Currently, it's difficult to create new users automatically as postal make-user creates a prompt for user details. I would absolutely love it if we could enter the username/password/details as arguments.

For example, postal make-user -fname Test -lname User -password pass -username testuser

Thanks!

Side Note: The password is insecure, as it can be seen while being entered as well as in the shell's history file, but the user can always change it after logging in. Probably a better way would be for a password to be automatically generated and output by the command.

eveandcats avatar May 13 '17 16:05 eveandcats

I like both these ideas. I'll get them implemented soon.

adamcooke avatar May 13 '17 21:05 adamcooke

You can use bash feature and pipe the standard input to directly create user.

printf '[email protected]\nFname\nSname\nLongRand0mPassword' | postal make-user

zeeshanjamal16 avatar Nov 13 '18 16:11 zeeshanjamal16

@adamcooke Any update on this?

stevus avatar Dec 31 '19 14:12 stevus