Operating System - HP-UX
1833582 Members
3842 Online
110061 Solutions
New Discussion

Cannot add user to a group

 
SOLVED
Go to solution
Michael Campbell
Trusted Contributor

Cannot add user to a group

Folks

I'm having the following message when I try to add a user to certain group:
____

Failed to modify membership for group "dev5". An invalid argument was supplied to an option in the command "/usr/sam/lbin/grpusrs".
____

I have added this user successfully to other groups and the problem group only has 12 other users.

Any Help Appreciated

Michael
4 REPLIES 4
Christian Gebhardt
Honored Contributor

Re: Cannot add user to a group

Hi
in /var/sam/log/samlog you can see the command sam executes.

What argument or option is invalid?

Chris
Michael Campbell
Trusted Contributor

Re: Cannot add user to a group

Christian

The following is from the samlog:

Executing the following command:\C/usr/sam/lbin/grpusrs -m -l "blakeg,dev5dba,dowdalo,fegans,fitzgee,gleesoj,grillsj,hanneyi,hiemstp,hylandf,queenf,twome
yc,burrowl" dev5\C
@!@2@1036056074@0
Command completed with exit status 3.
@!@16@1036056074@0
Failed to modify group attributes for group dev5.
@!@8@1036056074@0
Exiting Task Manager with task ug_modgrp_4d.
@!@16@1036056074@0
Failed to modify membership for group "dev5". An invalid argument was suppli
ed to an option in the command "/usr/sam/lbin/grpusrs".^A
@!@8@1036056215@0
Exiting Task Manager with task UG_MODIFY_GROUP.
@!@129@1036056221@0


Does this help?

Regards

Michael

Christian Gebhardt
Honored Contributor
Solution

Re: Cannot add user to a group

Hi
you can try the command by hand:

/usr/sam/lbin/grpusrs -m -l "blakeg,dev5dba,dowdalo,fegans,fitzgee,gleesoj,grillsj,hanneyi,hiemstp,hylandf,queenf,twomeyc,burrowl" dev5

I'm worry about the blank line in this command between "twome" and "yc".
Is this one user with a carriage return or are this two users ?

You told us that the group has 12 members but there are 13 (or 14 ?) members in the commandline ?

Are there any special signs in /etc/group? You can control it with vi and "set list"

Chris

Michael Campbell
Trusted Contributor

Re: Cannot add user to a group

Christian

Thanks for your help. When I ran it manually, it told me that one of the users did not exist and so when I took out that user everything worked OK.

Regards

Michael