[cmeeks@hetemit ~]$ sudo -l
User cmeeks may run the following commands on hetemit:
(root) NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff
You have write privileges over /etc/systemd/system/pythonapp.service
The most important parameters here are :
• User : The user that the service will run as.
• Execstart : It specifies the command that will run when the service starts.
Now we want to get shell as root. There are many ways to do so with systemd services.