[Samba] Why would "net rpc rights grant" fail ?

Koenraad Lelong samba.k.lelong at ace-electronics.be
Fri Apr 18 06:28:42 MDT 2014


op 18-04-14 13:18, Rowland Penny schreef:
> On 18/04/14 12:14, Koenraad Lelong wrote:
>> op 17-04-14 12:07, Rowland Penny schreef:
>>
>>> I would suggest that you remove the following from your Administrators
>>> group:
>>>
>>> objectClass: posixGroup
>>> gidNumber: 65533
>>> msSFU30NisDomain: ace_domain
>>>
>>> You can do this with ldbedit:
>>>
>>> ldbedit -e nano -H /var/lib/samba/private/sam.ldb
>>>
>>> Search for
>>> 'CN=Administrators,CN=Builtin,DC=ad01,DC=ace-electronics,DC=be' and then
>>> just delete them.
>>>
>>> then run 'samba-tool ntacl sysvolreset'
>>>
>> Samba-tool crashes, so I presume sysvol is not fixed.
>>
>> Koenraad.
>>
> What do you mean 'samba-tool crashes' ?
>
> have you tried running 'samba-tool ntacl sysvolreset' ?
>
> Rowland
>
>
After the edit :
# samba-tool ntacl sysvolreset
ERROR(<class 'passdb.error'>): uncaught exception - Unable to get id for sid
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", 
line 175, in _run
     return self.run(*args, **kwargs)
   File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 
208, in run
     (BA_gid,BA_type) = s4_passdb.sid_to_id(BA_sid)


I tried the same before the edit, there I got several

Freed frame ../source3/smbd/posix_acls.c:3524, expected 
../source3/passdb/pdb_samba_dsdb.c:2035.
Freed frame ../source3/modules/vfs_acl_common.c:736, expected 
../source3/passdb/pdb_samba_dsdb.c:2035.

but no errors.

Koenraad



More information about the samba mailing list