Skip to content

Commit

Permalink
Change the user and group of default users file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammedz93 committed Jul 5, 2023
1 parent 837fd2b commit 365e9c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -602,6 +602,7 @@ export username="${USERNAME}"
export password="$(sudo grep ^${USERNAME} $FILESYSTEM_ROOT/etc/shadow | cut -d: -f2)"
j2 files/build_templates/default_users.json.j2 | sudo tee $FILESYSTEM_ROOT/etc/sonic/default_users.json
sudo LANG=c chroot $FILESYSTEM_ROOT chmod 600 /etc/sonic/default_users.json
sudo LANG=c chroot $FILESYSTEM_ROOT chown root:shadow /etc/sonic/default_users.json

## Copy over clean-up script
sudo cp ./files/scripts/core_cleanup.py $FILESYSTEM_ROOT/usr/bin/core_cleanup.py
Expand Down

0 comments on commit 365e9c6

Please sign in to comment.