The simplest thing you could do for adding a user is to get the superadduser program (if you have Gentoo like me...but since you don't...) or adduser. But to answer your question, first figure out what groups Aby belongs to:
Code:
cat /etc/group | grep Aby
The output might be something like this:
adm::4:root,adm,daemon,Aby
wheel::10:root,Aby
games::35:Aby
This means that Aby is in the adm, wheel, and games groups.
Now, on my box I have a command called "usermod" which will modify a user's account. I'll use this by typing in
Code:
usermod -G adm,wheel,games,new_group1,new_group2 Aby
This will add Aby to new_group1 and also to new_group2. If Aby is currently logged in, she won't be able to take advantage of the new groups until she logs out and then back in again (there are ways around this but that's just the simplest way). This includes if Aby is using the GUI.
And that's it. You must be careful to include the groups that Aby is already a part of in the command or Aby won't be a part of them anymomre. Don't just specify the new groups. Include every group that Aby needs to be a part of (hence why I checked before running "usermod").
I am using Gentoo and didn't know if Mandrake has the same command. But I happen to have a Mandrake 10 system on the same computer so I did a search and Mandrake does have the same command (in /usr/sbin/).
There may be other, better ways to do this, but this is how I do it because I only use two or three other users besides root.
- the dudeman