Module Line.Passwd

module Passwd: sig .. end
Line structure for /etc/passwd file records.

val name : Line.t -> string
The username of a password record. (accessor, required)
val set_name : string -> Line.t -> Line.t
Updater for Line.Passwd.name
val passwd : Line.t -> string
The password of a password record.

(On modern systems this is usually a dummy marker rather than the encrypted password.) (accessor, required)

val set_passwd : string -> Line.t -> Line.t
Updater for Line.Passwd.passwd
val uid : Line.t -> int
The user's id in a password record. (accessor, required)
val set_uid : int -> Line.t -> Line.t
Updater for Line.Passwd.uid
val gid : Line.t -> int
The user's group id in a password record. (accessor, required)
val set_gid : int -> Line.t -> Line.t
Updater for Line.Passwd.gid
val gecos : Line.t -> string
The user's gecos (real name, office, etc.) data in a password record. (accessor, required)
val set_gecos : string -> Line.t -> Line.t
Updater for Line.Passwd.gecos
val home : Line.t -> string
The user's home directory in a password record. (accessor, required)
val set_home : string -> Line.t -> Line.t
Updater for Line.Passwd.home
val shell : Line.t -> string
The user's shell in a password record. (accessor, required)
val set_shell : string -> Line.t -> Line.t
Updater for Line.Passwd.shell
val create : name:string ->
passwd:string ->
uid:int ->
gid:int -> gecos:string -> home:string -> shell:string -> Line.t -> Line.t
Add the Line.Passwd substructure to a line.