Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Passwd ¶
type Passwd struct {
Name string
Passwd string // Password is encrypted
Uid uint32
Gid uint32
Comment string
Home string
Shell string
}
Passwd wraps up `passwd` struct used in kernel
func GetPasswdByName ¶
GetPasswdByName wraps up `getpwnam` system call. It retrieves records from the password file based on username.
func GetPasswdByUid ¶
GetPasswdByUid wraps up `getpwuid` system call. It retrieves records from the password file based on uid.
func GetPasswdEntry ¶
func GetPasswdEntry() []*Passwd
GetPasswdEntry wraps up `getpwent` system call It performs sequential scans of the records in the password file.
type UserNotFoundError ¶
func (*UserNotFoundError) Error ¶
func (err *UserNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.