/usr/bin/g_sham_d is in gromacs 5.0.2-1.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/bin/gmx_d
/usr/bin/gmx_d