mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-05-11 09:28:03 +08:00
Change PAM authentication module path
This commit is contained in:
parent
b394353152
commit
ab65a23d61
2 changed files with 3 additions and 4 deletions
|
|
@ -130,10 +130,10 @@ Here are the instructions you should follow to replicate my AwesomeWM setup.
|
|||
Instead of authenticating with a custom password stored in plain text inside your configuration files, it is possible to use [PAM](https://wiki.archlinux.org/index.php/PAM) in order to do it using your regular user password in a secure way. [lua-pam](https://github.com/RMTT/lua-pam) allows us to use PAM from within AwesomeWM.
|
||||
|
||||
You will need to install the `pam` package through your distribution's package manager and then follow the [instructions to build lua-pam](https://github.com/RMTT/lua-pam).
|
||||
After building it, you can simply copy the resulting `liblua_pam.so` file to the lock screen configuration directory, like so:
|
||||
After building it, you can simply copy the resulting `liblua_pam.so` file to your configuration directory, like so:
|
||||
|
||||
```shell
|
||||
cp liblua_pam.so ~/.config/awesome/elemental/lock_screen/
|
||||
cp liblua_pam.so ~/.config/awesome/
|
||||
```
|
||||
|
||||
If you do not want to install it, no worries!
|
||||
|
|
|
|||
|
|
@ -3,8 +3,7 @@ local helpers = require("helpers")
|
|||
|
||||
local lock_screen = {}
|
||||
|
||||
-- local lua_pam_path = os.getenv("HOME").."/.config/awesome/elemental/lock_screen/liblua_pam.so"
|
||||
local lua_pam_path = helpers.this_dir().."liblua_pam.so"
|
||||
local lua_pam_path = os.getenv("HOME").."/.config/awesome/liblua_pam.so"
|
||||
|
||||
lock_screen.init = function ()
|
||||
-- Initialize authentication method based on whether lua-pam has been
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue