Skip to content
Snippets Groups Projects
Commit a17c81df authored by bjorn3's avatar bjorn3
Browse files

Move /etc/group generation to the installer

This ensures that the gid's for the auto-generated user groups stay in
sync with the gid in /etc/passwd. It also makes it easier to evolve the
format of /etc/group in the future.
parent d82216bc
No related branches found
No related tags found
No related merge requests found
...@@ -105,15 +105,6 @@ path = "/dev/stderr" ...@@ -105,15 +105,6 @@ path = "/dev/stderr"
data = "libc:stderr" data = "libc:stderr"
symlink = true symlink = true
# Group settings
[[files]]
path = "/etc/group"
data = """
root;0;root
user;1000;user
sudo;1;user
"""
# User settings # User settings
[users.root] [users.root]
password = "password" password = "password"
...@@ -125,3 +116,8 @@ home = "/root" ...@@ -125,3 +116,8 @@ home = "/root"
[users.user] [users.user]
# Password is unset # Password is unset
password = "" password = ""
# Group settings
[groups.sudo]
gid = 1
members = ["user"]
Subproject commit 6a4802d55631fee7a8de07b4f0f87ebd7f2f115b Subproject commit 7a7790e9bd2db0cf8ac07192ba3bba2e25673dbe
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment