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));
This modules provides a wrapper around the libc functions in pwd.h
for
handling the /etc/passwd
file, which stores information about users.
println!("{:?}", Passwd::from_name("root"));
println!("{:?}", Passwd::from_uid(0));