Skip to content

Commit

Permalink
Only add to important and existing groups + sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhoo committed Jul 22, 2017
1 parent e2ed364 commit ce4921e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion image_bootstrap/distros/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ def adjust_cloud_cfg_dict(self, cloud_cfg_dict):
system_info__default_user = system_info.setdefault('default_user', {})
system_info__default_user['name'] = self.get_cloud_username()
system_info__default_user['gecos'] = 'Cloud-init-user'

system_info__default_user['sudo'] = ["ALL=(ALL) NOPASSWD:ALL"]
system_info__default_user['groups'] = ['adm']
system_info['distro'] = self.get_cloud_init_distro()

def adjust_etc_cloud_cfg(self):
Expand Down

0 comments on commit ce4921e

Please sign in to comment.