Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] cant add user to group?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
JDSANCHEZ
n00b
n00b


Joined: 08 Oct 2004
Posts: 36

PostPosted: Fri Mar 07, 2008 8:45 pm    Post subject: [SOLVED] cant add user to group? Reply with quote

I did

Code:
gpasswd -a jds vboxusers


and when i do
Code:
groups
as user jds vboxusers is not in the list. But in /etc/groups jds is listed by vboxusers...

I need this to use Virtual Box as my main user..

Code:
vboxusers:!:1007:jds


Code:
jds@box1 ~ $ VirtualBox
bash: /usr/bin/VirtualBox: Permission denied



One other thing, i get a "1006" when i do "groups".... i removed it from the vmware group and deleted the group but then i had "1006".

Code:
jds@box1 ~ $ groups
lp wheel floppy audio cdrom video usb portage jds scanner 1006


Hopefully i made some sense here, im in a big hurry and can't get detailed :)


Last edited by JDSANCHEZ on Fri Mar 07, 2008 10:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54270
Location: 56N 3W

PostPosted: Fri Mar 07, 2008 8:53 pm    Post subject: Reply with quote

JDSANCHEZ,

You must log out and back in to pick up new groups.

Group names mean nothing to the system. The group IDs are used everywhere. The IDs are only mapped to names in /etc/group.
Removing the entry from /etc/group removes the mapping to the name but the old Group ID still works.
Its a major security risk as when you create a new group, the old group ID may be reused and members of the new group will have access to the old groups resources too.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Fri Mar 07, 2008 8:57 pm    Post subject: Reply with quote

The ! looks somewhat irritating... I am not sure, what a change to x would effect, but it is worth a try. (I think it means that the group is disabled.) resp add the following line to /etc/group
Code:
vboxusers:x:820:jds


then do a logout/login cycle.
Back to top
View user's profile Send private message
JDSANCHEZ
n00b
n00b


Joined: 08 Oct 2004
Posts: 36

PostPosted: Fri Mar 07, 2008 10:14 pm    Post subject: Reply with quote

I feel really stupid now lol... Logging out and back in solved both issues, now i get

Code:
jds@box1 ~ $ groups
lp wheel floppy audio cdrom video usb portage jds scanner vboxusers
jds@box1 ~ $


And VirtualBox works now. Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum