-1

I'm running on a linux box, a process as a regular user, this is the only way I can start this process. After it starts I can put a break point inside the main function, after it hits the breakpoint I can do what ever I want to the process (I'm root on the system). I'd like to change the process owner from the regular user to root, is it possible?

e271p314
  • 3,581
  • 7
  • 33
  • 56

1 Answers1

1

If you're running gdb as root you should be able to achieve this by running the command:

call setuid(0)

Hope this helps

jcm
  • 2,518
  • 13
  • 17