Documentation ¶
Overview ¶
Package shadow provides functions to read, modify and write a linux shadow file.
Index ¶
- type File
- func (file *File) AddUser(username string, password string) error
- func (file *File) Dupe() *File
- func (file *File) SetPassword(username string, password string) error
- func (file *File) String() string
- func (file *File) ToWriter(writer io.Writer) error
- func (file *File) VerifyPassword(username string, password string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct {
// contains filtered or unexported fields
}
File represents a Linux shadow file.
func FileFromReader ¶
FileFromReader loads a shadow file from the specified reader.
func (*File) SetPassword ¶
SetPassword sets the password of the specified user.
Click to show internal directories.
Click to hide internal directories.