An open API service indexing awesome lists of open source software.

https://github.com/thefox/linux-setuid-example

Example how to set UID/GID to a process in C.
https://github.com/thefox/linux-setuid-example

c examples linux public-domain unlicensed

Last synced: 3 months ago
JSON representation

Example how to set UID/GID to a process in C.

Awesome Lists containing this project

README

        

# Linux setuid()/setgid() Example

Example of how to use `setuid()` and `setgid()` functions under Linux in C.

## Test it

1. Run `make main`.
2. Run `sudo ./main`.