summaryrefslogtreecommitdiff
path: root/tests/setup_user_test
AgeCommit message (Collapse)Author
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-12tests: setup-sshd, setup-user: test ssh dir permissionsNick Hanley
Follow up to the follow up (87e374fd, a91180af). Commit dfd40992 also affects ~/.ssh, so test its permissions too.
2022-07-12tests: setup-user: test permissions of authorized_keysNatanael Copa
follow up to commit dfd40992e173 (setup-sshd, setup-user: follow openssh permission recommendations)
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-06-28tests: add test for setup-user -uNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/72
2022-06-28tests: setup-user: add test for -k optNatanael Copa
ref https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/70
2022-05-23tests: setup-user: add test for suggested ssh key urlNatanael Copa
2022-05-21tests: fix interactive testNatanael Copa
apparently atf_check can not run in a subshell so we can not pipe the input. Use a temp file for the answers instead
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: 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-19tests: add test for setup-user with a single nameNatanael Copa
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