I think these commands should work: getent group kmem kmem:x:993: // Only proceed if the kmem is present sudo usermod -aG kmem austin reboot