Skip to content

Commit

Permalink
Don't use system groups when creating the base user (#83)
Browse files Browse the repository at this point in the history
* Don't use system groups when creating the base user

* Also change it for docker images
  • Loading branch information
garyservin authored Apr 20, 2024
1 parent 0d1524e commit 2eea2e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment/image_recipes/bare_metal/bare_metal.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
{
"type": "shell",
"inline": [
"groupadd -r {{user `username`}}",
"groupadd {{user `username`}}",
"useradd -ms /bin/bash -p $(echo \"{{user `password`}}\" | openssl passwd -1 -stdin) -g {{user `username`}} -G sudo {{user `username`}}",
"echo \"{{user `username`}} ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers",
"mkdir -p /home/{{user `username`}}",
Expand Down
2 changes: 1 addition & 1 deletion environment/image_recipes/docker/docker.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
{
"type": "shell",
"inline": [
"groupadd -r {{user `username`}}",
"groupadd {{user `username`}}",
"useradd -ms /bin/bash -p $(echo \"{{user `password`}}\" | openssl passwd -1 -stdin) -g {{user `username`}} -G sudo {{user `username`}}",
"echo \"{{user `username`}} ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers",
"mkdir -p /home/{{user `username`}}",
Expand Down
2 changes: 1 addition & 1 deletion environment/image_recipes/lxd/lxd.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{
"type": "shell",
"inline": [
"groupadd -r {{user `username`}}",
"groupadd {{user `username`}}",
"useradd -ms /bin/bash -p $(echo \"{{user `password`}}\" | openssl passwd -1 -stdin) -g {{user `username`}} -G sudo {{user `username`}}",
"echo \"{{user `username`}} ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers",
"mkdir -p /home/{{user `username`}}",
Expand Down

0 comments on commit 2eea2e9

Please sign in to comment.