This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
ubuntu:setuid [2018/02/18 05:50] tschulz |
ubuntu:setuid [2018/02/18 05:51] tschulz |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== SetUid C source ===== | ===== SetUid C source ===== | ||
- | <file c> | + | <file c setuidtest.c> |
#include <stdio.h> | #include <stdio.h> | ||
#include <sys/types.h> | #include <sys/types.h> | ||
Line 26: | Line 26: | ||
return 0; | return 0; | ||
} | } | ||
+ | </file> | ||
+ | |||
+ | ===== Compile and chmod ===== | ||
+ | <file bash> | ||
+ | gcc -o setuidtest setuidtest.c | ||
+ | chmod u+s setuidtest | ||
</file> | </file> | ||