useradd

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultShell = "/bin/sh"

Variables

This section is empty.

Functions

func NewUser

func NewUser(ctx context.Context, rootfs fs.FullFS, username, shell string, uid int) error

NewUser adds an entry to the /etc/passwd file to create a new Linux user. This must be run after regular filesystem mutations (i.e. just before the layer is appended)

func NewUserDir added in v0.1.3

func NewUserDir(ctx context.Context, rootfs fs.FullFS, username string, uid int) error

NewUserDir creates the filesystem for a new Linux user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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