util

package
v0.0.0-...-8365721 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chown

func Chown(file, user string) error

Chown changes owner

func CreateUser

func CreateUser(name string) error

CreateUser will create a normal user by name

func DropRunAs

func DropRunAs(name string, debug bool, files ...*os.File) (*os.Process, error)

DropRunAs will drop root previlidge and run as a normal user

func GetUserGUID

func GetUserGUID(name string) (int, int, error)

GetUserGUID give user's GUID

func HasElem

func HasElem(s interface{}, elem interface{}) bool

HasElem Helper function to find if a elem in a slice

func IsUserExist

func IsUserExist(name string) bool

IsUserExist check if user exist on host

func SubtractStringSlice

func SubtractStringSlice(slice, s []string) []string

SubtractStringSlice remove string from slice

Types

This section is empty.

Directories

Path Synopsis
acl
log

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL