]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
add support for sudo (#165)
authorFrancisco Pombal <17580742+FranciscoPombal@users.noreply.github.com>
Sun, 21 Aug 2022 21:02:21 +0000 (22:02 +0100)
committerGitHub <noreply@github.com>
Sun, 21 Aug 2022 21:02:21 +0000 (21:02 +0000)
programs/sudo.json [new file with mode: 0644]

diff --git a/programs/sudo.json b/programs/sudo.json
new file mode 100644 (file)
index 0000000..d3546ae
--- /dev/null
@@ -0,0 +1,10 @@
+{
+    "files": [
+        {
+            "path": "$HOME/.sudo_as_admin_successful",
+            "movable": true,
+            "help": "This file is only generated by versions >=1.9.6 if they were built with _--enable-admin-flag_.\n\nHowever, these versions also support disabling the creation of this file via the _admin_flag_ sudoers option, regardless of build configuration.\nTo do this, add the following directive to _/etc/sudoers_ or (preferably) to a file under _/etc/sudoers.d_:\n```\nDefaults !admin_flag\n```\n\nNote that bash may be configured to always print out a \"hint\" on interactive sessions if neither _\"$HOME\"/.sudo_as_admin_successful_ nor _\"$HOME\"/.hushlogin_ exist.\n\nTo prevent this, comment out or delete the corresponding _if_ statement in _/etc/bashrc.bashrc_."
+        }
+    ],
+    "name": "sudo"
+}