From e5f5053ceb695cfdd7a1353d64d4fb170a2a6926 Mon Sep 17 00:00:00 2001 From: "Mr. Robot" Date: Wed, 17 Feb 2021 12:19:21 +0100 Subject: [PATCH] add data source for sg --- data/sg.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 data/sg.json diff --git a/data/sg.json b/data/sg.json new file mode 100644 index 0000000..ee9c920 --- /dev/null +++ b/data/sg.json @@ -0,0 +1,15 @@ +{ + "functions": { + "shell": [ + { + "description": "Commands can be run if the current user's group is specified, therefore no additional permissions are needed.", + "code": "sg $(id -ng)\n" + } + ], + "sudo": [ + { + "code": "sudo sg root\n" + } + ] + } +}