Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUser ¶
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 ¶
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.
Click to show internal directories.
Click to hide internal directories.