-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(Dockerfile): Simplify testssl
user creation
#2312
chore(Dockerfile): Simplify testssl
user creation
#2312
Conversation
Create `testssl` user (_and group_) with no password (`-D`) and default their shell to bash (`-s`): - A group will implicitly be created with the same value as the user. `addgroup testssl` and `-G testssl` are not needed. - Gecos data (`-g "testssl user"`) doesn't appear relevant to the project to be required? The default gecos value (`Linux User,,,`) should be fine.
Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like the merge caused a minor regression 😅
ln -s /home/testssl/testssl.sh /usr/local/bin/ | ||
adduser -D -s /bin/bash testssl && \ | ||
ln -s /home/testssl/testssl.sh /usr/local/bin/ && \ | ||
mkdir -m 755 -p /home/testssl/etc /home/testssl/bin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a heads up @drwetter when this PR was raised, I think it was separate from the mkdir
change, which you had merged earlier.
When you updated the branch here before merging, it looks like it didn't diff well, and accidentally brought back the mkdir line? (the previous PR change is actually missing from the files history now).
You may want to remove the line again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both commits are in the 3.1dev
branch history though 🤷♂️
Thanks, PR pending/merged I manually had to resolve the conflict and I just removed w/o thinking what github labeled as conflict. |
Extracted from #2305 (specifically this commit)
Create a
testssl
user (and group) with no password (-D
) and default their shell to bash (-s
):addgroup testssl
and-G testssl
are not needed.-g "testssl user"
) doesn't appear relevant to the project to be required? The default gecos value (Linux User,,,
) should be fine.