system

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSSHUser

func AddSSHUser(username, password string) error

AddSSHUser creates a system user in the slipgate-ssh group. If the user already exists, it updates the password instead.

func EnsureDir

func EnsureDir(path, owner string) error

EnsureDir creates a directory owned by the slipgate user.

func EnsureUser

func EnsureUser() error

EnsureUser creates the slipgate system user and groups if they don't exist.

func GeneratePassword

func GeneratePassword(length int) string

GeneratePassword generates a random alphanumeric password.

func ListSSHUsers

func ListSSHUsers() ([]string, error)

ListSSHUsers returns all users in the slipgate-ssh group.

func RemoveSSHUser

func RemoveSSHUser(username string) error

RemoveSSHUser kills active sessions and removes a user from the system.

func RemoveSpecificUser added in v1.5.0

func RemoveSpecificUser(username string) error

RemoveSpecificUser removes a system user by name.

func RemoveUser

func RemoveUser() error

RemoveUser removes the slipgate system user and groups.

Types

This section is empty.

Jump to

Keyboard shortcuts

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