Groups, What am I overlooking?

Patrick Head patrick at phead.net
Sat Jul 17 09:04:34 PDT 2004


On Sat, 2004-07-17 at 08:32, DJ Lucas wrote:
> to be an existing tool that I'm just overlooking; to just add a user to
> a group without affecting the rest of his groups, isn't there?!?!?
> -- DJ Lucas

DJ,

I just tried this:

usermod -G`id -Gn user_in_question | tr ' ' ','`,new_group
user_in_question

I realize this is a "one killer command" but it is just one command
line!

Hope this helps!

Patrick

-- 
Patrick Head
patrick at phead.net





More information about the lfs-chat mailing list