Ecosyste.ms: Awesome
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: 2 days ago
JSON representation
https://dustinspecker.com/posts/setuid-elevating-privileges/
- Host: GitHub
- URL: https://github.com/dustinspecker/setuid-example
- Owner: dustinspecker
- License: mit
- Created: 2020-07-30T01:17:00.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-01T16:36:25.000Z (over 4 years ago)
- Last Synced: 2023-04-09T18:51:20.236Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
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