You are not logged in.
I am trying to add myself to a new group without having to logout/login. This should work, however:
$ sudo usermod -a -G kvm
$ newgrp kvm
newgrp: setgid failed: Operation not permitted
Any suggestions welcome.
Last edited by awayand (2012-08-18 04:02:58)
Offline
# chmod +s /usr/bin/newgrp
or
# setcap cap_dac_override,cap_setgid+ep /usr/bin/newgrp
Looks like a package bug: newgrp was part of shadow package, now is on util-linux but is not setuid. Please file a bug.
Offline
Offline
submitted: https://bugs.archlinux.org/task/31182
Your suggestion works.
Thanks!
Offline