package passwd

import "github.com/coreos/rkt/pkg/passwd"

Index

Functions

func LookupUid

func LookupUid(userName string) (uid int, err error)

LookupUid reads the passwd file and returns the uid of the user specified by userName.

func LookupUidFromFile

func LookupUidFromFile(userName, passwdFile string) (uid int, err error)

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

passwd.go

Version
v1.30.0 (latest)
Published
Apr 13, 2018
Platform
linux/amd64
Imports
8 packages
Last checked
3 days ago

Tools for package owners.