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

https://github.com/dustinspecker/setuid-example

https://dustinspecker.com/posts/setuid-elevating-privileges/
https://github.com/dustinspecker/setuid-example

Last synced: 3 months ago
JSON representation

https://dustinspecker.com/posts/setuid-elevating-privileges/

Awesome Lists containing this project

README

        

# setuid-example

## Usage

1. Clone this repository and navigate to root of this project
1. Run `go build main.go`
1. Run `./main`
- You'll be shown a sad face and error message
1. Run `sudo ./main` to verify everything works.
1. Run `sudo chown root ./main`
1. Run `sudo chmod u+s ./main`
1. Run `./main` and it will run as root now