Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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 main

import (
"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)