Unlock keyring on login
This commit is contained in:
parent
b53dd26fe6
commit
f61e41c608
10
etc/pam.d/login
Normal file
10
etc/pam.d/login
Normal file
@ -0,0 +1,10 @@
|
||||
#%PAM-1.0
|
||||
|
||||
auth required pam_securetty.so
|
||||
auth requisite pam_nologin.so
|
||||
auth include system-local-login
|
||||
auth optional pam_gnome_keyring.so
|
||||
account include system-local-login
|
||||
session include system-local-login
|
||||
password include system-local-login
|
||||
session optional pam_gnome_keyring.so auto_start
|
@ -14,3 +14,6 @@ if [ "${DEV}" -eq 1 ] && [ "${WORKSTATION}" -eq 1 ]; then
|
||||
./install_code_extensions.sh
|
||||
fi
|
||||
|
||||
if [ "${WORKSTATION}" -eq 1 ]; then
|
||||
./install_pam.sh
|
||||
fi
|
||||
|
@ -3,7 +3,6 @@
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
cd "${SCRIPT_DIR}"
|
||||
|
||||
source "${SCRIPT_DIR}/common.sh"
|
||||
|
||||
|
10
install_pam.sh
Executable file
10
install_pam.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
if ! diff "${SCRIPT_DIR}/etc/pam.d/login" /etc/pam.d/login &> /dev/null; then
|
||||
sudo meld "${SCRIPT_DIR}/etc/pam.d/login" /etc/pam.d/login
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user