Skip to content

Conversation

@kohenkatz
Copy link
Contributor

@kohenkatz kohenkatz commented Dec 13, 2024

The adduser command uses -D to mean "create with defaults". The useradd command uses -D to mean "show or edit the defaults".

The comment says "make this change in Alpine images", but the actual code line below it is wrong for the Debian-based images.

man pages:

The `adduser` command uses `-D` to mean "create with defaults". The `useradd` command uses `-D` to mean "show or edit the defaults".

man pages:

- [`useradd`](https://manpages.debian.org/jessie/passwd/useradd.8.en.html)
- [`adduser](https://manpages.debian.org/jessie/adduser/adduser.8.en.html)

(Those are for Debian, but they are very similar for every other distro that I checked)
@dunglas dunglas merged commit 047ce0c into php:main Dec 14, 2024
1 check passed
@dunglas
Copy link
Member

dunglas commented Dec 14, 2024

Thanks!

dunglas added a commit that referenced this pull request Dec 14, 2024
@kohenkatz kohenkatz deleted the patch-1 branch December 15, 2024 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants