Skip to content

Commit bb22c38

Browse files
committed
Move sudoers and Polkit config to BlueBuild
1 parent 482bbf5 commit bb22c38

3 files changed

Lines changed: 10 additions & 16 deletions

File tree

build.sh

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,6 @@ systemctl enable seagl-reset-users.service
2727

2828
ln -s /usr/share/applications/room-setup.desktop /etc/xdg/autostart
2929

30-
cat > /etc/sudoers.d/10-unconditionally-grant-sudoers <<EOF
31-
# Don't bother laptop users with needing to know passwords:
32-
# rooms with laptops are physically secured by UW staff when
33-
# unattended at the venue.
34-
ALL ALL = (ALL) NOPASSWD: ALL
35-
EOF
36-
37-
cat > /etc/polkit-1/rules.d/00-allow-everything.rules <<EOF
38-
// Don't bother laptop users with needing to know passwords:
39-
// rooms with laptops are physically secured by UW staff when
40-
// unattended at the venue.
41-
polkit.addRule(function(action, subject) {
42-
return polkit.Result.YES;
43-
});
44-
EOF
45-
4630
# https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/7/html/desktop_migration_and_administration_guide/extensions-enable
4731
mkdir -p /usr/share/gnome-shell/extensions/{appmenu-is-back@fthx,grand-theft-focus@zalckos.github.com}
4832
cd /usr/share/gnome-shell/extensions/appmenu-is-back@fthx
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Don't bother laptop users with needing to know passwords:
2+
// rooms with laptops are physically secured by UW staff when
3+
// unattended at the venue.
4+
polkit.addRule(function(action, subject) {
5+
return polkit.Result.YES;
6+
});
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Don't bother laptop users with needing to know passwords:
2+
# rooms with laptops are physically secured by UW staff when
3+
# unattended at the venue.
4+
ALL ALL = (ALL) NOPASSWD: ALL

0 commit comments

Comments
 (0)