View Single Post
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#3
Originally Posted by ag2 View Post
This is a simple utility for gaining root access. It is similar to (and inspired by) becomeroot, but better in a number of ways
Even if it is better, it should stay 100% compatible with 'sudo gainroot'. Looks like you tried but still I would suggest to drop '-' after su from /usr/sbin/gainroot to make it more compatible with original version. You can add it to your new root script so it is still 'easy'. So root script would become "sudo gainroot -" and in original gainroot use something like "exec su $@". Using exec will avoid one sh process in calling stack (=save some memory). Same could be done in your new root script so together you will save two waiting shells (try it with ps, top or htop from SDK repository).
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-01-07 at 14:50.
 

The Following User Says Thank You to fanoush For This Useful Post: