Commit 7692ed5
committed
firstlogin: use useradd/groupadd instead of the adduser suite
Debian forky demoted adduser from the essential/minimal set, so minimal
images ship without it and armbian-firstlogin fails at user creation
(adduser: command not found) — reported in armbian/os#470 on Forky minimal.
Switch to the passwd (Essential) tools, matching a6cb68a (addgroup ->
groupadd in rockchip family_tweaks):
- user creation: adduser --disabled-password --home ... --gecos ...
-> useradd --create-home --home-dir ... --shell "$SHELL_PATH"
--comment ... --user-group (per-user group, skel copy, disabled
password preserved; password is set right after as before)
- docker group: addgroup --system --quiet -> groupadd --system
(getent guard already present)
- /etc/adduser.conf DSHELL edit now guarded on the file existing;
useradd reads /etc/default/useradd, which set_shell already updates.
No new package needed; useradd/groupadd are Essential (passwd) so present
on every image including minimal.
Signed-off-by: Igor Pecovnik <igor@armbian.com>1 parent e1f2e37 commit 7692ed5
1 file changed
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
258 | 258 | | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
262 | 264 | | |
263 | | - | |
| 265 | + | |
264 | 266 | | |
265 | 267 | | |
266 | 268 | | |
| |||
586 | 588 | | |
587 | 589 | | |
588 | 590 | | |
589 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
590 | 598 | | |
591 | 599 | | |
592 | 600 | | |
| |||
608 | 616 | | |
609 | 617 | | |
610 | 618 | | |
611 | | - | |
| 619 | + | |
612 | 620 | | |
613 | 621 | | |
614 | 622 | | |
| |||
0 commit comments