1 // +build darwin dragonfly freebsd linux netbsd openbsd solaris
10 // Unix-specific path to the passwd and group formatted files.
12 unixPasswdPath = "/etc/passwd"
13 unixGroupPath = "/etc/group"
16 func GetPasswdPath() (string, error) {
17 return unixPasswdPath, nil
20 func GetPasswd() (io.ReadCloser, error) {
21 return os.Open(unixPasswdPath)
24 func GetGroupPath() (string, error) {
25 return unixGroupPath, nil
28 func GetGroup() (io.ReadCloser, error) {
29 return os.Open(unixGroupPath)