<div dir="ltr">I'm afraid the command was working as expected.<div><br></div><div>
<p class="gmail-p1"><span class="gmail-s1">%</span><span class="gmail-s2"> sudo chmod g+s $(which id) </span></p>
<p class="gmail-p4"><span class="gmail-s2">%</span><span class="gmail-s3"> id -g</span></p>
<p class="gmail-p1"><span class="gmail-s2">0</span></p><p class="gmail-p1"><span class="gmail-s2"><br></span></p>
<p class="gmail-p4"><span class="gmail-s2">%</span><span class="gmail-s3"> sudo chmod g-s $(which id)</span></p>
<p class="gmail-p4"><span class="gmail-s2">%</span><span class="gmail-s3"> id -g </span></p>
<p class="gmail-p1"><span class="gmail-s2">100</span></p></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">Regards,<br>Siva Chidambaram Somu</div></div>
<br><div class="gmail_quote">On Tue, Aug 30, 2016 at 9:03 AM, Mihai Moldovan <span dir="ltr"><<a href="mailto:ionic@ionic.de" target="_blank">ionic@ionic.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 29.08.2016 11:33 AM, Sivachidambaram Somu wrote:<br>
> My bad. I have given below the output of the mount command on my machine.<br>
><br>
> %mount<br>
><br>
> /dev/xvda1 on / type auto (rw,noatime)<br>
><br>
> proc on /proc type proc (rw)<br>
><br>
> sysfs on /sys type sysfs (rw)<br>
><br>
> devpts on /dev/pts type devpts (rw,gid=5,mode=620)<br>
><br>
> tmpfs on /dev/shm type tmpfs (rw)<br>
><br>
> /dev/mapper/ephemeralVG-<wbr>ephemeral on /local type ext4 (rw)<br>
><br>
> none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)<br>
><br>
> fusectl on /sys/fs/fuse/connections type fusectl (rw)<br>
<br>
</span>Okay, no "nosuid" option in there, so that's also ruled out.<br>
<br>
<br>
As a test, set the setgid bit on the id binary like this:<br>
<br>
sudo chmod g+s $(which id)<br>
<br>
then, as a non-root user(!) run:<br>
<br>
id -g<br>
<br>
Make sure to disable the setgit bit again with:<br>
<br>
sudo chmod g-s $(which id)<br>
<br>
<br>
If the previous id -g call returned an effective group ID of 0, that means that<br>
setgid functionality should be working on your system. If it's not 0, the reason<br>
for your problems are likely that setgid on files is not working correctly on<br>
your system.<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Mihai<br>
<br>
</font></span></blockquote></div><br></div>