Skip to content

Commit 50a6b0b

Browse files
committed
add usr/libexec/helper-scripts/sudo-tools-enable
1 parent 5b30da2 commit 50a6b0b

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

usr/bin/dev-adrelanos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ autologin-user=user
3838

3939
sudo append-once /etc/privleap/conf.d/privleap-debugging.conf "\
4040
[action:sudo]
41-
Command=chmod o+x /usr/bin/sudo
41+
Command=/usr/libexec/helper-scripts/sudo-tools-enable
4242
AuthorizedGroups=sudo
4343
AuthorizedUsers=user
4444
"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#!/bin/bash
2+
3+
## Copyright (C) 2025 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
4+
## See the file COPYING for copying conditions.
5+
6+
set -x
7+
set -e
8+
9+
file_list=(
10+
/usr/bin/su
11+
/usr/bin/sudo
12+
/usr/bin/sudoedit
13+
/usr/bin/pkexec
14+
/usr/bin/doas
15+
)
16+
17+
for file_item in "${file_list[@]}"; do
18+
if test -f "$file_item"; then
19+
if ! test -x "$file_item"; then
20+
chmod --verbose +x -- "$file_item"
21+
fi
22+
fi
23+
done

0 commit comments

Comments
 (0)