From 7e5dfcaa2bdf48e9c88a59c2afff2a4c773fb668 Mon Sep 17 00:00:00 2001 From: Francisco Pombal <17580742+FranciscoPombal@users.noreply.github.com> Date: Sun, 21 Aug 2022 22:02:21 +0100 Subject: [PATCH] add support for sudo (#165) --- programs/sudo.json | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 programs/sudo.json diff --git a/programs/sudo.json b/programs/sudo.json new file mode 100644 index 0000000..d3546ae --- /dev/null +++ b/programs/sudo.json @@ -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" +} -- 2.47.3