Oliver Thinnes
2002-May-28 02:21 UTC
[Samba] samba 2.2.4 / winbind: UNIX user id of NT users has changed after system reboot
Dear Sirs. I have here running samba 2.2.4 compiled on Redhat 7.2 with kernel 2.4.17 with ACL support on EXT3 (http://acl.bestbits.at) and winbindd. Winbind works. I can ssh as a NT4 user and use samba network shares as a NT user without username mapping. (no German special characters, no spaces in user name). When I create new users winbindd uses the next free user id. When deleting a user that user is also deleted in winbindd (after updating BDCs). But after system reboot the Windows NT users have other UNIX user ids than before the reboot. When sorting the NT user names in alphabetical order the UNIX id of the NT users is also ascendig. It seems that winbind assigns the UNIX user id ascending when the NT user names are in alphatical order . So when you create new users i.e. "a.test", then after reboot the NT users that come in the alphabeth after the user "a.test" have different UNIX user ids. Before reboot # getent passwd .. PULSAAR+a.test:x:10035:10000:testuser:/fileserver/homes/PULSAAR/a.test:/ bin/bash PULSAAR+Administrator:x:10001:10000::/fileserver/homes/PULSAAR/administr ator:/bin/bash .. After grereboot # getent passwd .. PULSAAR+a.test:x:10000:10000:testuser:/fileserver/homes/PULSAAR/a.test:/ bin/bash PULSAAR+a.test12:x:10001:10000::/fileserver/homes/PULSAAR/a.test12:/bin/ bash PULSAAR+Administrator:x:10002:10000::/fileserver/homes/PULSAAR/administr ator:/bin/bash This problems seem not to exist in winbind groups. # getent group PULSAAR+Admin:x:10003: PULSAAR+Backup:x:10004:PULSAAR+Administrator PULSAAR+Controlling:x:10005:PULSAAR+Administrator PULSAAR+Domaenen-Benutzer:x:10002:PULSAAR+Administrator Yours sincerely. Oliver Thinnes