Carl Lowenstein wrote: > OK, I give up (again). Is there a way to become a valid member of a > group without logging out and logging in again? I know that logout, > login will work, but that is painful if you have a lot of other things > going on. > > Of course, after modifying /etc/group to join said group. But > newgrp(1) will not do it, and a program that insists on being run only > by members of its own private group won't let me in. > > Evidence: > > [EMAIL PROTECTED] ~]$ VBox > WARNING: You are not a member of the "vboxusers" group. Please add yourself > to this group before starting VirtualBox. > > You will not be able to start VMs until this problem is fixed. > Unknown application - VBox > [EMAIL PROTECTED] ~]$ groups cdl > cdl : cdl disk wheel staff vboxusers > [EMAIL PROTECTED] ~]$ newgrp vboxusers > Sorry. > [EMAIL PROTECTED] ~]$ id > uid=500(cdl) gid=500(cdl) groups=6(disk),10(wheel),60(staff),500(cdl) > context=user_u:system_r:unconfined_t > [EMAIL PROTECTED] ~]$
Strange.. on my F7 (and previous systems), newgrp works in that scenario. I always thought that having to login to have a new group membership honored was a big inconvenience, but settled for using newgrp as a workaround. Maybe you just mistyped the newgrp command? Regards, ..jim PS: <heh> Now I need to ask: what is the recommended way to remove a user from membership in a group? ;-) ..j -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-newbie
