22 releases

1.0.0-alpha5 Nov 1, 2023
1.0.0-alpha4 Jan 19, 2022
1.0.0-alpha3 Mar 28, 2021
1.0.0-alpha2 May 3, 2020
0.0.4 Mar 29, 2015

#331 in Unix APIs

Download history 5909/week @ 2023-12-15 5570/week @ 2023-12-22 6984/week @ 2023-12-29 5973/week @ 2024-01-05 6260/week @ 2024-01-12 6067/week @ 2024-01-19 6067/week @ 2024-01-26 7298/week @ 2024-02-02 8793/week @ 2024-02-09 4046/week @ 2024-02-16 4399/week @ 2024-02-23 5402/week @ 2024-03-01 5557/week @ 2024-03-08 6472/week @ 2024-03-15 8348/week @ 2024-03-22 7424/week @ 2024-03-29

28,536 downloads per month
Used in 18 crates (4 directly)


53 lines

pam-sys - Rust FFI bindings to the Linux Pluggable Authentication Modules (PAM)

Crates.io Documentation Build Status Azure Build Status Cirrus License

This crate uses bindgen to generate the raw FFI definitions for PAM. For a rustified API consider using pam.

Supported Rust versions (MSRV)

The library is only continuously built against Rust stable, beta and nightly but as it does not use a lot of new language features it should probably compile on older versions as well. The MSRV is mostly determined by the version of bindgen used. If you encounter problems building on older versions and a small fix can be applied to make the build succeed, consider opening a pull request.

Supported operating systems

Currently this library is only thoroughly tested on Linux (due to the lack of reliable access to other platforms). However, support of all operating systems supported by PAM is an explicit goal. If you spot an error, please open an issue and I'll try to resolve it.


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.


~37K SLoC