Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10819 - samba winbind database problem
Summary: samba winbind database problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Donny Davies (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-16 04:11 UTC by Achim Gottinger (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Achim Gottinger (RETIRED) gentoo-dev 2002-11-16 04:11:04 UTC
Hi guys,

Just found that winbind stores it's databases in /var/run/samba. So everytime 
the machine restarts the bootmisc script removes all these files and you loose 
all the relations between SID's and UID's for example. The result is that a 
user who logs in with an windows account might get another UID assigned next 
time he logs on.

cu achim~
Comment 1 Donny Davies (RETIRED) gentoo-dev 2002-11-16 14:43:01 UTC
achim do you know off hand what the ./configure fix or whatever
is for this?  if not i'd have to investigate into it :/
Comment 2 Achim Gottinger (RETIRED) gentoo-dev 2002-11-18 15:40:52 UTC
Hi donny,

I took a look in the samba package and found that it is indeed --with-lockdir 
which should be fixed.
the lsb.spec file uses /var/lock/samba the suse spec file /var/lib/samba, so it 
looks like all the databases currently located in /var/run/samba should be 
persistent.

cu achim~
Comment 3 Donny Davies (RETIRED) gentoo-dev 2002-11-19 06:34:08 UTC
Achim I upgraded my PDC.  Everything is working fine; all went smoothly.
At first I thought the databases would need to be moved, but I guess not.
I did this just to convince myself:

samba stop ; emerge samba ; rm -f /var/run/samba/* ; samba start
logout/login on WinXP/Win9x boxes
all is good :-)

only 2 changes:
--with-lockdir=/var/cache/samba
install -m0755 -o root -g root -d ${ROOT}/var/cache/samba

i'll commit this later today sometime, hope thats okay.

Comment 4 Donny Davies (RETIRED) gentoo-dev 2002-11-20 11:30:22 UTC
thanks Achim.

samba-2.2.7 is on cvs now...