#user-group #redox #user-id #group-id #os

redox_users

A Rust library to access Redox users and groups functionality

15 releases

0.4.6 Aug 19, 2024
0.4.5 Mar 31, 2024
0.4.4 Nov 4, 2023
0.4.3 Mar 30, 2022
0.1.0 Mar 28, 2018

#23 in Authentication

Download history 412202/week @ 2024-08-15 432200/week @ 2024-08-22 424416/week @ 2024-08-29 457331/week @ 2024-09-05 440109/week @ 2024-09-12 428513/week @ 2024-09-19 448900/week @ 2024-09-26 449702/week @ 2024-10-03 443813/week @ 2024-10-10 472303/week @ 2024-10-17 453795/week @ 2024-10-24 440251/week @ 2024-10-31 435739/week @ 2024-11-07 450719/week @ 2024-11-14 423641/week @ 2024-11-21 348534/week @ 2024-11-28

1,740,355 downloads per month
Used in 10,950 crates (3 directly)

MIT license

57KB
1K SLoC

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)

Dependencies

~0.4–1.2MB
~26K SLoC