redox_users

Crates.ioredox_users
lib.rsredox_users
version0.4.6
sourcesrc
created_at2018-03-28 18:15:46.838444
updated_at2024-08-19 15:19:33.136243
descriptionA Rust library to access Redox users and groups functionality
homepage
repositoryhttps://gitlab.redox-os.org/redox-os/users
max_upload_size
id57940
size59,088
Jeremy Soller (jackpot51)

documentation

https://docs.rs/redox_users

README

redox_users

Redox OS APIs for accessing users and groups information. Documentation

High level APIs for:

  • Getting the current process effective user ID.
  • Getting the current process user ID.
  • Getting the current process effective group ID.
  • Getting the current process group ID.
  • Manipulating User and Group information (including adding, removing, and modifying groups and users, in addition to other functionality, see docs)

We recommend to use these APIs instead of directly manipulating the /etc/group and /etc/passwd as this is an implementation detail and might change in the future.

Note that redox_users is an API designed only for use on Redox. It compiles on other platforms (for testing), but it will not work and might produce unexpected behavior.

Hashing

redox_users uses the Argon2 hashing algorithm. The default hashing parameters are as follows:

Argon2::new(10, 1, 4096, Variant::Argon2i)
Commit count: 0

cargo fmt