Aleix Conchillo
2002-Jun-06 01:29 UTC
[Samba] Effective UID is not 0 in: unable to open passdb database...
I get next error while trying to join a Samba PDC: [2001/12/03 23:51:03, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(170) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was Permission denied [2001/12/03 23:51:03, 0] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1416) unable to open passdb database. I've been trying to locate the error in samba source code (2.2.4). I found that the effective UID in that moment is not root (UID is), and that's why it has no permissions to read the smbpasswd file. It seems that it should change the euid after reading that file, but not before. i was not able to find where is changing the euid, but i'm sure that someone will know how to solve that problem. regards, aleix
Gerald (Jerry) Carter
2002-Jun-06 09:48 UTC
[Samba] Effective UID is not 0 in: unable to open passdb database...
On 6 Jun 2002, Aleix Conchillo wrote:> > I get next error while trying to join a Samba PDC: > > [2001/12/03 23:51:03, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(170) > startsmbfilepwent_internal: unable to open file > /usr/local/samba/private/smbpasswd. Error was Permission denied > [2001/12/03 23:51:03, 0] passdb/pdb_smbpasswd.c:pdb_getsampwrid(1416) > unable to open passdb database. > > > I've been trying to locate the error in samba source code (2.2.4). I > found that the effective UID in that moment is not root (UID is), and > that's why it has no permissions to read the smbpasswd file. It seems > that it should change the euid after reading that file, but not before. > > i was not able to find where is changing the euid, but i'm sure that > someone will know how to solve that problem.Can you send me a level 10 debug log of this? Also make sure to include you smb.conf, ./configure options, user connected to the Samba PDC, client OS, etc... Please send it of list. cheers, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--