Solved Error adding users to a group

I created the group "support" and add more users to the group with the #pw groupmod support -M cano command but to display the information of the last user group that I added and others do not appear in the group only appears.

Example:
#pw groupmod support -M cano
#pw groupmod support -M samy
#pw groupmod support -M fer

Code:
#pw groupshow support
support:*:1003:fer

Other users will not appear in the group.
If I type the following command:
Code:
#id cano
uid = 1005 (cano) gid = 1006 (cano) groups = 1006 (cano)

#id fer
uid=1003(fer) gid=1004(fer) groups=1004(fer),1003(support)

The user does not appear gray in the support group.
I hope you can help me, I need the support group has permissions on a particular folder.

Cheers!
 
Use a lowercase m: pw groupmod support -m cano

See pw(8):
Code:
    -m newmembers  Similar to -M, this option allows the addition of existing
                    users to a group [b]without replacing the existing list of
                    members[/b].  Login names or user ids may be used, and dupli‐
                    cate users are silently eliminated.
 
Hi tobik.

Thank you very much for the information, I've been able to add users.

One more question.

To assign group permissions rwx support on the Data folder, How do you do?

Cheers!
 
Back
Top