I'm currently running a VPS on CentOS. I have an application running in the background and it will run a script under sudo to either disable or enable any account.So what I'm trying to create is a script that creates an account, adds a password and adds the users under etc/sudoers.The script is being run as root so there shouldn't be any permission errors. How would I come to create this script?
Centos: Adduser/Passwd/Sudoer Script
centos;sudo