How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root?
I'm studying cyber security and plays with capture-the-flag machines to enhance my skills.
I've encountered a system that don't seems vulnerability, but may have vulnerable non-running daemons.
I'm looking for a way to enumerate daemons that can be started by the current (low-privileged) user, but that will run as root once started. I would prefer Debian or Red Hat commands.
Currenly, I only know of
service --status-all and
systemctl, but I can't seem to get the info I'm looking for - and
systemctl is not available on Red Hat.