Module Line.Passwd


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

val name : < passwd : Line.present; .. > Line.t -> string
The username of a password record. (accessor, required)
val set_name : string -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.name
val passwd : < passwd : Line.present; .. > 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 -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.passwd
val uid : < passwd : Line.present; .. > Line.t -> int
The user's id in a password record. (accessor, required)
val set_uid : int -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.uid
val gid : < passwd : Line.present; .. > Line.t -> int
The user's group id in a password record. (accessor, required)
val set_gid : int -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.gid
val gecos : < passwd : Line.present; .. > Line.t -> string
The user's gecos (real name, office, etc.) data in a password record. (accessor, required)
val set_gecos : string -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.gecos
val home : < passwd : Line.present; .. > Line.t -> string
The user's home directory in a password record. (accessor, required)
val set_home : string -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.home
val shell : < passwd : Line.present; .. > Line.t -> string
The user's shell in a password record. (accessor, required)
val set_shell : string -> (< passwd : Line.present; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Passwd.shell
val create : name:string ->
passwd:string ->
uid:int ->
gid:int ->
gecos:string ->
home:string ->
shell:string ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : Line.absent; ps : 'f; seq : 'g; source : 'h; stat : 'i >
Line.t ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : Line.present; ps : 'f; seq : 'g; source : 'h; stat : 'i >
Line.t
Add the Line.Passwd substructure to a line.