I have installed winbind and it is working, but I need to change the uid/gid being used by winbind since I am running into some conflicts with UIDs. UID 10071 is being used by my spamfilter and winbindd is also mapping one of the user IDs from the W2K3 server to 10071. In an attempt to change this, I modified my smb.conf file as follows. [global] workgroup = MO idmap gid = 15000-20000 idmap uid = 15000-20000 winbind enum users = yes winbind enum groups = yes winbind separator = + security = domain password server = 10.129.10.41 wins server = 10.129.10.41 I restarted the server thinking my users would be remapped in the range 15000-20000. However, they are still mapped in the 10000-20000 as I had originally set in the smb.conf file. I confirmed this using getent passwd. I am running 3.0.23c on FreeBSD 6.2. Any suggestions would be greatly appreciated. Thanks, Jay
You probably need to remove the winbindd_idmap.tdb file and restart winbindd. Be advised this will delete all current mappings so any files with those UID/GID's may get different "owners". The other more complicated option is to run tdbtool on the file and only delete the "bad" mappings. If you don't know where to find that file run smbd -b | grep LOCKDIR jhall@vandaliamo.net wrote:> I have installed winbind and it is working, but I need to change the > uid/gid being used by winbind since I am running into some conflicts with > UIDs. > > UID 10071 is being used by my spamfilter and winbindd is also mapping one > of the user IDs from the W2K3 server to 10071. > > In an attempt to change this, I modified my smb.conf file as follows. > > [global] > workgroup = MO > idmap gid = 15000-20000 > idmap uid = 15000-20000 > winbind enum users = yes > winbind enum groups = yes > winbind separator = + > security = domain > password server = 10.129.10.41 > wins server = 10.129.10.41 > > I restarted the server thinking my users would be remapped in the range > 15000-20000. However, they are still mapped in the 10000-20000 as I had > originally set in the smb.conf file. I confirmed this using getent > passwd. > > I am running 3.0.23c on FreeBSD 6.2. > > Any suggestions would be greatly appreciated. > > Thanks, > > > Jay >
Thank you!!! I had thought it was stored somewhere, but did not know where. I will give this a try tomorrow, after all of the storms pass. Thanks again. Jay> Once a uid mapping has been made,it is persistent, and it is stored in > the winbindd_idmap.tdb file in the locks directory. > If you want the mapping to remap your users, you would have to remove this > file. I'd suggest copying it somewhere safe until you're sure this new > mapping works for you. > hope this helps, > Don > > > ----- Original Message ---- > From: "jhall@vandaliamo.net" <jhall@vandaliamo.net> > To: samba@lists.samba.org > Sent: Thursday, August 23, 2007 7:42:40 PM > Subject: [Samba] winbind uid problem > > > I have installed winbind and it is working, but I need to change the > uid/gid being used by winbind since I am running into some conflicts with > UIDs. > > UID 10071 is being used by my spamfilter and winbindd is also mapping one > of the user IDs from the W2K3 server to 10071. > > In an attempt to change this, I modified my smb.conf file as follows. > > [global] > workgroup = MO > idmap gid = 15000-20000 > idmap uid = 15000-20000 > winbind enum users = yes > winbind enum groups = yes > winbind separator = + > security = domain > password server = 10.129.10.41 > wins server = 10.129.10.41 > > I restarted the server thinking my users would be remapped in the range > 15000-20000. However, they are still mapped in the 10000-20000 as I had > originally set in the smb.conf file. I confirmed this using getent > passwd. > > I am running 3.0.23c on FreeBSD 6.2. > > Any suggestions would be greatly appreciated. > > Thanks, > > > Jay > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba > > > > ____________________________________________________________________________________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/ >