For that to work, we would need to add the user to the sudoers file so they can start tasks that would normally requires root privileges.
Sudoers users can start root programs using the below command:
Creating a regular user:
In the sudoers file, we need to add either the user or the group we want to give root privileges to.
Adding a group of users to the sudoers file: