How to remove group membership from user using the Lion Terminal?
Try this command to remove the user from a particular group 

dseditgroup -o edit -d $Username -t user $GroupName




dseditgroup -o edit -d _denyhosts -t user workgroup