alibaba/kt-connect

View on GitHub
pkg/kt/util/system_unix.go

Summary

Maintainability
A
0 mins
Test Coverage
//go:build !windows

package util

import (
    "os"
)

func IsRunAsAdmin() bool {
    return os.Geteuid() == 0
}

func GetAdminUserName() string {
    return "root"
}