mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
set SUDO_ASKPASS for pkexec wrapper when using sudo --askpass
This commit is contained in:
parent
1a65a91039
commit
d4e02de43a
@ -87,7 +87,8 @@ PATH="$(sudo --non-interactive /usr/lib/security-misc/echo-path)"
|
||||
export PATH
|
||||
|
||||
if [ "$use_sudo" = "true" ]; then
|
||||
sudo --askpass --user "$user_pkexec_wrapper" --set-home "$@"
|
||||
SUDO_ASKPASS="/usr/lib/security-misc/askpass" \
|
||||
sudo --askpass --user "$user_pkexec_wrapper" --set-home "$@"
|
||||
else
|
||||
lxqt-sudo "$@"
|
||||
fi
|
||||
|
10
usr/lib/security-misc/askpass
Executable file
10
usr/lib/security-misc/askpass
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
## Copyright (C) 2019 - 2019 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
set -e
|
||||
|
||||
title="$0: password required for $(whoami) to perform action as superuser"
|
||||
|
||||
zenity --password --title="$title"
|
Loading…
Reference in New Issue
Block a user