Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willdonnelly/passwd
A Go parser for the /etc/passwd file
https://github.com/willdonnelly/passwd
Last synced: 28 days ago
JSON representation
A Go parser for the /etc/passwd file
- Host: GitHub
- URL: https://github.com/willdonnelly/passwd
- Owner: willdonnelly
- Created: 2012-04-28T16:35:11.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-02-14T04:56:16.000Z (10 months ago)
- Last Synced: 2024-02-15T11:32:54.536Z (10 months ago)
- Language: Go
- Size: 123 KB
- Stars: 22
- Watchers: 2
- Forks: 15
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
- cybersecurity-golang-security - passwd - A Go parser for the /etc/passwd file. (Linux Specific)
- awesome-go-security - passwd - A Go parser for the /etc/passwd file. (Linux Specific)
README
> godoc github.com/willdonnelly/passwd
PACKAGE
package passwd
import "github.com/willdonnelly/passwd"FUNCTIONS
func Parse() (map[string]Entry, error)
Parse opens the '/etc/passwd' file and parses it into a map from
usernames to EntriesTYPES
type Entry struct {
Pass string
Uid string
Gid string
Gecos string
Home string
Shell string
}
An Entry contains all the fields for a specific user