Add user groups and the sudo functionality

Change-Id: Ie3d0ac2bb96e7661fe55dd836716f503a2a8413d