restoring winbindd_idmap.tdb file
Chris Chupela
cxc718 at gmail.com
Wed Apr 30 02:17:38 UTC 2025
I recently had to remove and re-add a RH 6.10 server (ad domain joined with
winbind), due to a failed server replacement. Problem I ran into is that
domain accounts that had permissions on the file system (home directories)
were assigned new UID/GID's when I rejoined the domain, thus blocking
access to files/dirs they previously had access to.
(did not make any changes to the smb.conf file during all of this).
I did copy /var/lib/samba/*.tdb to a backup directory, and cleared the
cache prior to re-adding the server back to the domain. If I was to do the
following:
1. stop winbind and smb
2. dump the contents of the old winbindd_idmap.tdb file to a text file
3. make another backup of /var/lib/samba
4. delete the existing winbindd_idmap.tdb file from /var/lib/samba
5. start winbind and smb back up
6. restore the dump file created in step 2 with net idmap restore (feeding
it the dump file)
Could I expect that this will restore access to the homedirs/files with the
correct UID/GID's from the copy of winbindd_idmap.tdb that I made?
Thx.
--
*Regards,*
*cxc718 at gmail.com <cxc718 at gmail.com>*
More information about the samba-technical
mailing list