I hope others have run into this.
When using sudo combined with the "newgrp" command I am droped into the "root" user ID. This is what I am running:
sudo newgrp - d_tst
Environment 'tst' set.
root@mybox:/#
I am now "root" what is going on.
root@mybox:/# id
uid=0(root) gid=204(d_tst)groups=0(system),2(bin),3(sys),7(security),8(cron),10(audit),11(lp)
I really do not want this to happen and I have set the "sudoers" file up correctly I think.
Is there a security bug with sudo and the "newgrp" command?
thanx
When using sudo combined with the "newgrp" command I am droped into the "root" user ID. This is what I am running:
sudo newgrp - d_tst
Environment 'tst' set.
root@mybox:/#
I am now "root" what is going on.
root@mybox:/# id
uid=0(root) gid=204(d_tst)groups=0(system),2(bin),3(sys),7(security),8(cron),10(audit),11(lp)
I really do not want this to happen and I have set the "sudoers" file up correctly I think.
Is there a security bug with sudo and the "newgrp" command?
thanx