Hi, I run a ucs test setup and i need to be able to create users and groups using the command line interface.
During the test i observed when I try create a test user “smithda” and a group “smithda” ONLY the one or the other is possible, as follows:
udm groups/group create \
--position "cn=groups,dc=math,dc=uzh,dc=ch" \
--set name="smithda" \
--set gidNumber="10900"
and then
udm users/user create \
--position "cn=users,dc=math,dc=uzh,dc=ch" \
--set lastname="Smith" \
--set password="qwertyu1234" \
--set username="smithda"
Then I see –
“E: Object exists: (uid) : smithda”
another observation was when I run:
udm users/user create \
--position "cn=users,dc=math,dc=uzh,dc=ch" \
--set lastname="Smith" \
--set password="qwertyu1234" \
--set username="smithda" \
--set primaryGroup="cn=10900,cn=groups,dc=math,dc=uzh,dc=ch"
Then I see –
“Need a primary group with samba option to create a user with samba option.”
The background for my question is I need that the users have their own primary group, so it should look at then end as follows:
getent group smithda
smithda: *: 10900
getent passwd smithda
smithda:x:10900:10900: Daniel Smith:/home/smithda: /bin/bash
Thanks for your feedback.
Best Regards,
Daniel
Setup:
UCS: 4.2-3 errata305
App Center compatibility: 4
Installed: cups=1.7.5 printquota=9.0 samba4=4.6