Sébastien QUESSON
2017-May-29 19:51 UTC
[Samba] samba-tool cannot add or remove group members
Hi samba-tool group addmembers stage user ERROR(exception): Failed to add members "user" to group "stage" - Unable to find "user". Operation cancelled. File "/usr/lib/python2.7/dist-packages/samba/netcmd/group.py", line 227, in run add_members_operation=True) File "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 274, in add_remove_group_members raise Exception('Unable to find "%s". Operation cancelled.' % member) net rpc group addmem stage user -UAdministrator>ok, user addedsamba-tool group removemembers stage user>errornet rpc group delmem stage user -UAdministrator> ok user deletedI remember that I provisionned my domain few weeks ago with samba-tool without problem! This command does not work anymore for another user, or for other groups... What's the problem? I'm on debian 9, samba 4.5.8 I read some similar problem on the list https://www.spinics.net/lists/samba/msg142240.html, but I did not help me Best regards, Sébastien QUESSON
On Mon, 29 May 2017 21:51:15 +0200 (CEST) Sébastien QUESSON via samba <samba at lists.samba.org> wrote:> Hi > > samba-tool group addmembers stage user > ERROR(exception): Failed to add members "user" to group "stage" - > Unable to find "user". Operation cancelled. File > "/usr/lib/python2.7/dist-packages/samba/netcmd/group.py", line 227, > in run add_members_operation=True) File > "/usr/lib/python2.7/dist-packages/samba/samdb.py", line 274, in > add_remove_group_members raise Exception('Unable to find "%s". > Operation cancelled.' % member) > > net rpc group addmem stage user -UAdministrator > >ok, user added > > samba-tool group removemembers stage user > >error > > net rpc group delmem stage user -UAdministrator > > ok user deleted > > I remember that I provisionned my domain few weeks ago with > samba-tool without problem! This command does not work anymore for > another user, or for other groups... > > What's the problem? I'm on debian 9, samba 4.5.8 > I read some similar problem on the list > https://www.spinics.net/lists/samba/msg142240.html, but I did not > help me > > Best regards, > > Sébastien QUESSON >would you be trying to add the user to the group like this: samba-tool group addmembers unixgroup "SAMDOM\user1" If so, try it like this: samba-tool group addmembers unixgroup suser1 Rowland
Sébastien QUESSON
2017-May-29 21:01 UTC
[Samba] samba-tool cannot add or remove group members
samba-tool group addmembers domaingroup 'SAMDOM\user1' ERROR(exception): Failed to add members "SAMDOM\user1" to group "domaingroup" - Unable to find "SAMDOM\user1". Operation cancelled. samba-tool group addmembers 'SAMDOM\domaingroup' 'SAMDOM\user1' ERROR(exception): Failed to add members "SAMDOM\user1" to group "SAMDOM\domaingroup" - Unable to find group "SAMDOM\domaingroup" samba-tool group addmembers localgroup 'SAMDOM\user1' ERROR(exception): Failed to add members "SAMDOM\user1" to group "localgroup" - Unable to find group "localgroup"