Fabric-UserSetup.py �?��U p�,��U def new_user(admin_username, admin_password): env.user = 'root' # Create the admin group and add it to the sudoers file admin_group = 'admin' runcmd('addgroup {group}'.format(group=admin_group)) runcmd('echo "%{group} ALL=(ALL) ALL" >> /etc/sudoers'.format( group=admin_group)) # Create the new admin user (default group=username); add to admin group runcmd('adduser
![Simple fabric function to create a new user](https://cdn-ak-scissors.b.st-hatena.com/image/square/1ef26f6cb4349557952890dbe3e567f7f98dc151/height=288;version=1;width=512/https%3A%2F%2Fgithub.githubassets.com%2Fassets%2Fgist-og-image-54fd7dc0713e.png)