__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// Allow admin users to change error reporting settings
polkit.addRule(function(action, subject) {
if (action.id == "com.ubuntu.whoopsiepreferences.change" &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
// Mounting, checking, etc. of internal drives
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.udisks2.filesystem-mount-system" ||
action.id == "org.freedesktop.udisks2.encrypted-unlock-system" ||
action.id == "org.freedesktop.udisks2.filesystem-fstab") &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
// Change CPU Frequency scaling
polkit.addRule(function(action, subject) {
if ((action.id == "org.gnome.cpufreqselector" ||
action.id == "org.mate.cpufreqselector" ) &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
// Setting the clock
polkit.addRule(function(action, subject) {
if ((action.id == "org.gnome.controlcenter.datetime.configure" ||
action.id == "org.kde.kcontrol.kcmclock.save" ||
action.id == "org.freedesktop.timedate1.set-time" ||
action.id == "org.freedesktop.timedate1.set-timezone" ||
action.id == "org.freedesktop.timedate1.set-local-rtc" ||
action.id == "org.freedesktop.timedate1.set-ntp" ||
action.id == "com.canonical.controlcenter.datetime.configure" ||
action.id == "org.mate.settingsdaemon.datetimemechanism.settime") &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
// Update already installed software
polkit.addRule(function(action, subject) {
if (action.id == "org.debian.apt.upgrade-packages" &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
// Printer administration
polkit.addRule(function(action, subject) {
if (action.id.indexOf("org.opensuse.cupspkhelper.mechanism.") == 0 &&
subject.active == true && subject.local == true &&
(subject.isInGroup("sudo") || subject.isInGroup("lpadmin"))) {
return polkit.Result.YES;
}
});
// Disable hibernate by default in Ubuntu
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.upower.hibernate" ||
action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.handle-hibernate-key" ||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions") {
return polkit.Result.NO;
}
});
// Allow admins to set the hostname,locale,keyboard,date/time without prompting
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.locale1.set-locale" ||
action.id == "org.freedesktop.locale1.set-keyboard" ||
action.id == "org.freedesktop.hostname1.set-static-hostname" ||
action.id == "org.freedesktop.hostname1.set-hostname") &&
subject.active == true && subject.local == true &&
subject.isInGroup("sudo")) {
return polkit.Result.YES;
}
});
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 10-systemd-logind-root-ignore-inhibitors.rules | File | 550 B | 0644 |
|
| 20-gdm.rules | File | 269 B | 0644 |
|
| 20-gnome-initial-setup.rules | File | 1.41 KB | 0644 |
|
| 20-gnome-remote-desktop.rules | File | 353 B | 0644 |
|
| 49-ubuntu-admin.rules | File | 104 B | 0644 |
|
| 50-default.rules | File | 325 B | 0644 |
|
| com.ubuntu.desktop.rules | File | 3.29 KB | 0644 |
|
| gamemode.rules | File | 523 B | 0644 |
|
| gnome-control-center.rules | File | 556 B | 0644 |
|
| org.a11y.brlapi.rules | File | 182 B | 0644 |
|
| org.freedesktop.GeoClue2.rules | File | 287 B | 0644 |
|
| org.freedesktop.NetworkManager.rules | File | 282 B | 0644 |
|
| org.freedesktop.bolt.rules | File | 368 B | 0644 |
|
| org.freedesktop.fwupd.rules | File | 251 B | 0644 |
|
| org.freedesktop.packagekit.rules | File | 334 B | 0644 |
|
| org.gtk.vfs.file-operations.rules | File | 594 B | 0644 |
|
| sssd-pcsc.rules | File | 519 B | 0644 |
|
| systemd-networkd.rules | File | 527 B | 0644 |
|