osutil

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(username, password, homedir string) error

AddUser creates a system user with no password, no login shell, and the specified home directory. It ensures the home directory exists, is owned by the user, and has 700 permissions. If password is empty, no password is set (disabling password login).

func UserExists

func UserExists(username string) (bool, error)

UserExists checks if the given username exists on the system. Returns true if the user exists, false otherwise, along with any error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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