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.
- Host: GitHub
- URL: https://github.com/thefox/linux-setuid-example
- Owner: TheFox
- License: unlicense
- Created: 2015-10-15T15:40:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-03-20T12:57:22.000Z (about 5 years ago)
- Last Synced: 2025-03-12T23:01:53.044Z (3 months ago)
- Topics: c, examples, linux, public-domain, unlicensed
- Language: C
- Homepage: https://fox21.at
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`.