#StackBounty: #linux #bash #google-chrome-os #dash scripting : how to non interactively perform setreuid()/setregid() in a bash script …

Bounty: 50

I have a bash script started with cap_sys_admin,cap_setgid,cap_setuid+eip (which means those capabilities are inheritable), what is the command for becoming root without typing password (note this simply means using setreuid(0,0)) ?

The aim is to perform this while not being in developer mode, nor turning rootfs versification off. This mean I can’t call a wrapper I would have written myself nor I can use python or perl.
The script is started during the boot process.

Get this bounty!!!