osuser

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MIN_UID = 1024
	MAX_UID = 65534
)

Variables

View Source
var (
	ErrEmptyPasswd     = errors.New("empty passwd file")
	ErrNoAvailableUids = errors.New("no available UIDs in passwd file")
)

Functions

func CreateUser

func CreateUser(name string) (int, error)

CreateUser creates a new user with the first vacant UID.

func RemoveUser

func RemoveUser(name string) error

RemoveUser deletes an existing user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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