summaryrefslogtreecommitdiff
path: root/setup-user.in
AgeCommit message (Collapse)Author
2023-01-24setup-*: use fake apk instead of $MOCK apkNatanael Copa
2022-11-08setup-user: skip user creation if 'none' is setNatanael Copa
Skip user creation if username is 'none' and no other options are set. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10528
2022-07-12setup-sshd, setup-user: follow openssh permission recommendationsNick Hanley
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.
2022-07-01setup-user: avoid eternal loop on adduser failureNatanael Copa
Make sure we dont loop forever if adduser fails to create the user. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10519
2022-07-01tests: add fake adduserNatanael Copa
So we can simulate what happens when adduser fails ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10519
2022-06-28setup-user: exit with error if unlocking user failsNatanael Copa
fixes commit 60c9392b6419 (Add -u unlock command to setup-user)
2022-06-28Add -u unlock command to setup-userShaRose
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.
2022-06-28setup-user: fix non-interactive handling of ssh keys urlMaxim Karasev
The script referenced the wrong variable.
2022-05-21setup-user: add magic keywords for fetching ssh keysNatanael Copa
Use al, gh, and gl as magic keywords to suggest url for shs key
2022-05-21setup-user: fix typoNatanael Copa
2022-05-20setup-user: add -a option to create admin userNatanael Copa
when -a is specified, doas gets installed and configured and username is added to wheels group for doas privileges
2022-05-20setup-user: use 'none' as the default for nowNatanael Copa
2022-05-20setup-user: refactor. ask for username firstNatanael Copa
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.
2022-05-19setup-user: suggest a usernameNatanael Copa
use first char in first name and all last name, in lower case as suggested user name.
2022-05-19setup-user: add -g option to specify groupsNatanael Copa
2022-05-19setup-user: prompt user for ssh keyNatanael Copa
2022-05-19setup-user: new setup scriptNatanael Copa