The dump option works fine:
(stopped samba)
net idmap dump /usr/local/samba/var/locks/winbindd_idmap.tdb >
/tmp/dump.out
However, after I modify the one line I want, move the old
winbindd_idmap.tdb aside, and then try restore:
net idmap restore /usr/local/samba/var/locks/winbindd_idmap.tdb <
/tmp/dump.out
I get for all users:
Could not set mapping of UID 142261 to sid
S-1-5-21-54288060-1989963526-242692186-42261
Could not set mapping of UID 146045 to sid
S-1-5-21-54648060-1989963526-242692186-46045
Could not set mapping of UID 145320 to sid
S-1-5-21-54448060-1989963526-242692186-45320
Could not set mapping of UID 145286 to sid
S-1-5-21-54368060-1989963526-242692186-45486
Could not set mapping of UID 145499 to sid
S-1-5-21-54348060-1989963526-242692186-45399
Could not set mapping of UID 145958 to sid
S-1-5-21-54348060-1989963526-242692186-45918
Could not set mapping of UID 142524 to sid
S-1-5-21-54348060-1989963526-242692186-42524
Could not set mapping of UID 145482 to sid
S-1-5-21-54348560-1989963526-242692186-45452
Could not set mapping of UID 145124 to sid
S-1-5-21-54348460-1989963526-242692186-45224
Could not set mapping of UID 142065 to sid
S-1-5-21-54348160-1989963526-242692186-42045
Could not set mapping of GID 119863 to sid
S-1-5-21-54348660-1989963526-242692186-19813
Could not set mapping of GID 127125 to sid
S-1-5-21-54348360-1989963526-242692186-27115
Could not set mapping of GID 115329 to sid
S-1-5-21-54348360-1989963526-242692186-15349
Could not set mapping of GID 127270 to sid
S-1-5-21-54348360-1989963526-242692186-27220
Could not set mapping of GID 110003 to sid
S-1-5-21-54348060-1989963526-242692186-10003
Could not set mapping of GID 124933 to sid
S-1-5-21-54348050-1989963526-242692186-24933
Could not set mapping of GID 113174 to sid
S-1-5-21-54348030-1989963526-242692186-13174
Could not set mapping of GID 110770 to sid
S-1-5-21-54348030-1989963526-242692186-10770
Could not set mapping of GID 115883 to sid
S-1-5-21-54348030-1989963526-242692186-15853
.
.
.
David Shapiro
Distributed Systems
Unix Team Lead
office: 919-765-2011
cellphone: 730-0538
>>> simo <idra@samba.org> 8/24/2006 9:10 AM >>>
use net idmap dump and net idmap restore
Simo.
On Thu, 2006-08-24 at 08:59 -0400, David Shapiro wrote:> Please provide me with an example on how to use this tool to change
a> uid of a user to what I want the uid to be. I am confused on what
it> thinks are keys. It has a keys command:
>
>
> key 11 bytes: UID 119989
> key 44 bytes: S-1-5-21-54348060-1989963526-242692186-2277
> key 44 bytes: S-1-5-21-54348060-1989963526-242692186-8749
> key 45 bytes: S-1-5-21-54348060-1989963526-242692186-24986
>
>
> But if I go to type tdb> show UID 119989
>
>
> tdb> open winbindd_idmap.tdb
> tdb> show UID 119989
> fetch failed
> tdb>
>
> What is the key? UID 119989? 119989? 11 bytes: UID 119989? Sigh.
> No examples are shown in the manpage.
>
> What I really want to do is locate the uid assocated with a specific
> sid and change it to something else. Please help.
>
> Thanks,
>
> David
>
>
> David Shapiro
> Distributed Systems
> Unix Team Lead
> office: 919-765-2011
> cellphone: 730-0538
--
Simo Sorce
Samba Team GPL Compliance Officer
email: idra@samba.org
http://samba.org
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/listinfo/samba