View previous topic :: View next topic |
Author |
Message |
JDSANCHEZ n00b
Joined: 08 Oct 2004 Posts: 36
|
Posted: Fri Mar 07, 2008 8:45 pm Post subject: [SOLVED] cant add user to group? |
|
|
I did
Code: | gpasswd -a jds vboxusers |
and when i do 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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Fri Mar 07, 2008 8:53 pm Post subject: |
|
|
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 |
|
|
Veldrin Veteran
Joined: 27 Jul 2004 Posts: 1945 Location: Zurich, Switzerland
|
Posted: Fri Mar 07, 2008 8:57 pm Post subject: |
|
|
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 |
|
|
JDSANCHEZ n00b
Joined: 08 Oct 2004 Posts: 36
|
Posted: Fri Mar 07, 2008 10:14 pm Post subject: |
|
|
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 |
|
|
|