package passwd
import "github.com/coreos/rkt/pkg/passwd"
Index ¶
- func LookupUid(userName string) (uid int, err error)
- func LookupUidFromFile(userName, passwdFile string) (uid int, err error)
- type User
Functions ¶
func LookupUid ¶
LookupUid reads the passwd file and returns the uid of the user specified by userName.
func LookupUidFromFile ¶
LookupUidFromFile reads the passwd file specified by passwdFile, and returns the uid of the user specified by userName.
Types ¶
type User ¶
type User struct { Name string Pass string Uid int Gid int Comment string Home string Interpreter string }
User represents an entry in the passwd file.
Source Files ¶
- Version
- v1.30.0 (latest)
- Published
- Apr 13, 2018
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 days ago –
Tools for package owners.