2021-02-16 04:49:13 +01:00
|
|
|
---
|
|
|
|
functions:
|
2021-02-16 04:57:15 +01:00
|
|
|
shell:
|
2021-02-16 04:49:13 +01:00
|
|
|
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
|
|
|
code: |
|
|
|
|
GROUPNAME=users
|
|
|
|
sg $GROUPNAME -c "/bin/sh"
|
|
|
|
command:
|
|
|
|
- description: Commands can be run if the current user's group is specified, therefore no additional permissions are needed.
|
|
|
|
code: |
|
2021-02-16 04:57:15 +01:00
|
|
|
COMMAND=whoami
|
2021-02-16 04:49:13 +01:00
|
|
|
GROUPNAME=users
|
|
|
|
sg $GROUPNAME -c $COMMAND
|
|
|
|
sudo:
|
|
|
|
- description: Any group can be specified as the user will have root permissions.
|
|
|
|
code: |
|
|
|
|
GROUPNAME=users
|
|
|
|
sudo sg $GROUPNAME -c "/bin/sh"
|
|
|
|
---
|