When I used smbpasswd it gives me the following error... root at hayek:~# smbpasswd john New SMB password: Retype new SMB password: Failed to find entry for user john. This is despite the existence of the user root at hayek:~# cat /etc/samba/smbpasswd # # SMB password file. # nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:nobody john:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U ]:LCT-00000000:John Tate,,, I do not understand what is going on. I really need to get this working. John Tate -- www.johntate.org
On Fri, Jan 20, 2012 at 02:01:29AM +1100, John Tate wrote:> When I used smbpasswd it gives me the following error... > root at hayek:~# smbpasswd john > New SMB password: > Retype new SMB password: > Failed to find entry for user john. > > This is despite the existence of the user > root at hayek:~# cat /etc/samba/smbpasswd > # > # SMB password file. > # > nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U > ]:LCT-00000000:nobody > john:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:[U > ]:LCT-00000000:John Tate,,, > > I do not understand what is going on. I really need to get this working.You might be running with "passdb backend = tdbsam" (the default right now). In that case, the smbpasswd file is no longer used. It's replaced by a file called passdb.tdb. With best regards, Volker Lendecke -- SerNet GmbH, Bahnhofsallee 1b, 37081 G?ttingen phone: +49-551-370000-0, fax: +49-551-370000-9 AG G?ttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.sernet.de, mailto:kontakt at sernet.de
Hallo, John, Du meintest am 20.01.12:> root at hayek:~# smbpasswd john > New SMB password: > Retype new SMB password: > Failed to find entry for user john.> This is despite the existence of the user > root at hayek:~# cat /etc/samba/smbpasswd > # > # SMB password file. > # > nobody:65534:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXX > XXXXXXXXX:[U ]:LCT-00000000:nobody > john:1000:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXX > XXXXXX:[U ]:LCT-00000000:John Tate,,,Tells pdbedit -Lw -u john the same contents? And - please - don't show this contents (at least the unchanged contents); it's very simple to restore the original password from this contents. Additional (related to Volkers answer): what tells testparm -sv 2>/dev/null | grep backend Viele Gruesse! Helmut