I am trying to execute a command with a specific user group as described in the linked question (How to run a process with a specific group?) on Alpine Linux, but the system says "not found"
~/work $ sg
sh: sg: not found
I checked shadow
package with apk info -a shadow
and it looks like the sg
command is present:
[...]
cmd:pwunconv
cmd:sg
cmd:su
[...]
Reference of shadow
package on Alpine: https://pkgs.alpinelinux.org/contents?branch=edge&name=shadow&arch=x86&repo=community
sudo sg
work? – terdon Jan 25 '20 at 12:37sg
withroot
user and I get tha same error – alessionossa Jan 25 '20 at 13:26/usr/bin/sg
. What doesls /usr/bin/sg
give you? If it isn't there, you should probably try reinstalling the package. – terdon Jan 25 '20 at 13:29