Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultPasswdFilename = "/etc/passwd"
View Source
var DefaultShadowFilename = "/etc/shadow"
Functions ¶
func VerifyPasswordHash ¶
Types ¶
type ShadowEntry ¶
type ShadowEntry struct {
Username string // Login name
Password string // Hashed password
Lastchanged int // Days since Jan 1, 1970 that password was last changed
Minimum int // The minimum number of days required between password changes i.e. the number of days left before the user is allowed to change his/her password
Maximum int // The maximum number of days the password is valid (after that user is forced to change his/her password)
Warn int // The number of days before password is to expire that user is warned that his/her password must be changed
Inactive int // The number of days after password expires that account is disabled
Expire int // Days since Jan 1, 1970 that account is disabled i.e. an absolute date specifying when the login may no longer be used.
}
Click to show internal directories.
Click to hide internal directories.