#!/bin/bash getent group wheel || groupadd wheel useradd cg_maintain_user groupmems -g wheel -a cg_maintain_user echo '%wheel ALL=(ALL:ALL) ALL' | EDITOR='tee -a' visudo mkdir -p /home/cg_maintain_user/.ssh touch /home/cg_maintain_user/.ssh/authorized_keys chown -R cg_maintain_user:cg_maintain_user /home/cg_maintain_user