| description |
code |
| Commands can be run if the current user's group is specified, therefore no additional permissions are needed. |
GROUPNAME=users
sg $GROUPNAME -c "/bin/sh"
|
|
|
| description |
code |
| Commands can be run if the current user's group is specified, therefore no additional permissions are needed. |
COMMAND=whoami
GROUPNAME=users
sg $GROUPNAME -c $COMMAND
|
|
|
| description |
code |
| Any group can be specified as the user will have root permissions. |
GROUPNAME=users
sudo sg $GROUPNAME -c "/bin/sh"
|
|
|