project-lakitu: shadow: configure uid and gid ranges

As per the http://go/uid-ranges-on-cos-design, in order
to resolve the conflicting uids and gids by cloud-init and
google-account-daemon.

Modifies /etc/login.defs to set the UID and GID range for user
accounts managed by google-accounts-daemon to [65536, 2^32 - 1).

cherry-picked the changes from https://crrev.com/c/1553062

BUG=b/113297150
TEST=manual validation test
RELEASE_NOTE=UIDs and GIDs generated by google-accounts-daemon or
OS login will be within [65536, 2^32 - 1). But the UID and GID
generated from cloud-init is still recommended to be in [2000, 5000)
range.

Change-Id: If7663e0b7d8b6999fa5126ccb44212655dd489cc
Reviewed-on: https://cos-review.googlesource.com/c/cos/overlays/board-overlays/+/9160
Reviewed-by: Vaibhav Rustagi <vaibhavrustagi@google.com>
Reviewed-by: Edward Jee <edjee@google.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
2 files changed