Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shamsher31/gosudoblock
Block users from running your app with root permissions
https://github.com/shamsher31/gosudoblock
Last synced: 4 days ago
JSON representation
Block users from running your app with root permissions
- Host: GitHub
- URL: https://github.com/shamsher31/gosudoblock
- Owner: shamsher31
- License: mit
- Created: 2015-08-19T18:11:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-30T07:18:50.000Z (about 9 years ago)
- Last Synced: 2024-06-21T09:54:07.398Z (5 months ago)
- Language: Go
- Size: 148 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license
Awesome Lists containing this project
README
# gosudoblock
[![Godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/shamsher31/gosudoblock)
Block users from running your app with root permissions
### How to install
```go
go get github.com/shamsher31/gosudoblock
```### How to use
```go
package mainimport (
"fmt"
"github.com/shamsher31/gosudoblock"
)func main() {
sudoblock.Is()
// ✖ You are not allowed to run this app with root permissions
}
```### Related
[goisroot](https://github.com/shamsher31/goisroot)
[gosymbol](https://github.com/shamsher31/gosymbol)
[chalk](https://github.com/ttacon/chalk)### Why
This package is inspired by [sudo-block](https://www.npmjs.com/package/sudo-block) npm module.### License
MIT © [Shamsher Ansari](https://github.com/shamsher31)