Skip to content

Commit 7f6d60c

Browse files
committed
Add compilation requirements
1 parent 6bd1799 commit 7f6d60c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ PRs to improve code quality and security are highly appreciated.
2222

2323
Modify to your needs:
2424

25-
1. Compile using `cargo build --production` and place the resulting binary in `/usr/local/bin`.
25+
1. Compile using `cargo build --production` and place the resulting binary in `/usr/local/bin`. You probably need to install `libclang-dev build-essential libpam0g-dev libpam0g` for the required `pam`-crate to compile.
2626
2. Add and enable systemd service. A sample for the unit file is in the `examples` directory.
2727
3. Add TOTP secrets comma-separated as `username,secret` in the shadow file you specified in the unit file (`--shadow-file`, defaults to `/etc/shadow_totp`). An example is provided in the `examples` directory. **Only users present in this file are allowed to log in.**
2828
4. Set file permissions of this shadow file accordingly (readable by your selected service user, preferrably not readable by any other users or groups).

0 commit comments

Comments
 (0)