Thread
:
[solved]Run app as root
View Single Post
auRatoh6oo
2015-02-03 , 09:54
Posts: 3 | Thanked: 0 times | Joined on Feb 2015
#
4
Originally Posted by
coderus
use suid bit and setuid(0) setgid(0) in main
I must be honst, I'm a fairly inexperienced in this, so please forgive me if my questions appear trival to you: Basically that would be the same as using chmod from the command line, wouldn't it?
Would this privilege evelation be that simple for every program on warehouse?
Since not the whole app would use, just some parts of it, could I get evelated privileges just for the critical parts and run the other code as normal user?
Edit: Remarking your edit: WOW! Thank you, that helped a lot! So for the critical code, I'd use this in the beginning. Dropping privileges would be setuid(1)?
Last edited by auRatoh6oo; 2015-02-03 at
10:00
.
Quote & Reply
|
auRatoh6oo
View Public Profile
Find all posts by auRatoh6oo