Age | Commit message (Collapse) | Author |
|
|
|
Skip user creation if username is 'none' and no other options are set.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10528
|
|
From the OpenSSH man page:
> ~/.ssh/
> ...
> There is no general requirement to keep the entire contents of this
> directory secret, but the recommended permissions are
> read/write/execute for the user, and not accessible by others.
>
> ~/.ssh/authorized_keys
> ...
> This file is not highly sensitive, but the recommended permissions are
> read/write for the user, and not accessible by others.
OpenSSH follows these recommendations when creating these files itself
so we should do the same.
|
|
Make sure we dont loop forever if adduser fails to create the user.
fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10519
|
|
So we can simulate what happens when adduser fails
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10519
|
|
fixes commit 60c9392b6419 (Add -u unlock command to setup-user)
|
|
Copied from github PR, but add -u so that you can include to forcably unlock the user after creation.
Useful for when you want to create a user automatically so they can log in using a passed SSH key (-k), but without a password so they can set up a password after connecting.
|
|
The script referenced the wrong variable.
|
|
Use al, gh, and gl as magic keywords to suggest url for shs key
|
|
|
|
when -a is specified, doas gets installed and configured and username is
added to wheels group for doas privileges
|
|
|
|
The username is shorter than full name so ask for that first and suggest
the username as fullname which will make the username show up in login
menu instead of 'Linux User'.
If -f FULLNAME is specified, then give a decent default suggestion based
on first letter in first name and lastname.
|
|
use first char in first name and all last name, in lower case as
suggested user name.
|
|
|
|
|
|
|