__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// Sample polkit rules to allow root-equivalent users (sudo group members)
// to restart apt-cacher-ng without using sudo or authentication,
// similar in principle to the sudoers rule
//
// %sudo ALL=(root) NOPASSWD: /bin/systemctl restart apt-cacher-ng.service
//
// but without needing to prefix the systemctl command with sudo.
//
// To use this file, copy it into /etc/polkit-1/rules.d/
polkit.addRule(function(action, subject) {
if (
subject.isInGroup("sudo")
&& action.id === "org.freedesktop.systemd1.manage-units"
&& action.lookup("unit") === "apt-cacher-ng.service"
&& action.lookup("verb") === "restart"
) {
return polkit.Result.YES;
}
return polkit.Result.NOT_HANDLED;
});
// vim:set ft=javascript:
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| 50-local-allow.rules | File | 774 B | 0644 |
|
| 50-local-deny.rules | File | 917 B | 0644 |
|