Discover Packages
github.com/Snakdy/container-build-engine
pkg
useradd
package
Version:
v0.4.4
Opens a new window with list of versions in this module.
Published: Sep 26, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
DefaultShell = "/bin/sh"
RootUser = "root"
)
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)
NewUserDir creates the filesystem for a new Linux
user.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.