Skip to content

Commit

Permalink
fs-skeleton: Don't create /etc/passwd
Browse files Browse the repository at this point in the history
Do not create /etc/passwd as it is automatically generated by systemd
during boot. This way the group id of the root user is correctly
resolved to 0.
  • Loading branch information
lundmar committed Jan 6, 2019
1 parent 729bb76 commit 74613ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs-skeleton/Buildfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ build() {
ln -s ../var $PKG/usr/var
ln -s ../run $PKG/var/run

# Create users with SHA512 password
echo "root:x:0:0:root:/root:/bin/bash" >> $PKG/etc/passwd
# Install SHA512 password for root user
echo -e "root:\$6\$01010101\$9M5Kunmy0spJHC.1Zp7RMMYMGXAJJllD.4cFpMlJEDtySqkf.TLNN4sRZ/u4oloRFcHrDJvYV5xYhJwgGZvc/1:16375:0:99999:7:::" >> $PKG/etc/shadow

# Create dynamic linker configuration
Expand Down

0 comments on commit 74613ca

Please sign in to comment.