Crate passwd

Source
Expand description

This modules provides a wrapper around the libc functions in pwd.h for handling the /etc/passwd file, which stores information about users.

§Examples

println!("{:?}", Passwd::from_name("root"));
println!("{:?}", Passwd::from_uid(0));

Structs§

  • Represents an entry in /etc/passwd