login=$1
#realm permit $login
short_login=$(echo $login | cut -f1 -d\@ | sed ‘s/\./_/’)
echo “$short_login ALL=(ALL) NOPASSWD:ALL” >> /etc/sudoers.d/admins_local

Leave a Reply

Your email address will not be published. Required fields are marked *