I have a user that I created via the
pw utility on FreeBSD. The full command I used was:
pw add user example -s /usr/local/scripts/example.sh -w none
The user can login as example without requiring a password which will run the example script. Once the script is done running the user will be automatically logged out.
I want to duplicate this user, but I'm looking into a way of doing it without requiring a utility. For example, I looked into modifying the
/etc/passwd file, but it doesn't look like that worked. The reason I say it didn't work is because it prompts me for a password and of course I don't have one for this user I tried to add.
Is what I'm after possible? Do I absolutely have to use utilities such as
Just a quick edit. Perhaps the only thing I'm missing is setting the user to not require a password. My edit of
/etc/passwd could be correct, and all I require would be to somehow set this new user to not require a password.