mirror of
https://github.com/netbirdio/netbird.git
synced 2024-12-15 11:21:04 +01:00
06860c4c10
This PR adds support for SSH access through the NetBird network without managing SSH skeys. NetBird client app has an embedded SSH server (Linux/Mac only) and a netbird ssh command.
13 lines
150 B
Go
13 lines
150 B
Go
//go:build linux || darwin
|
|
|
|
package util
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
// IsAdmin returns true if user is root
|
|
func IsAdmin() bool {
|
|
return os.Geteuid() == 0
|
|
}
|