Description of problem:
whenever I update samba, the file /etc/samba/smbpasswd is zeroed and the content
Version-Release number of selected component (if applicable):
How reproducible: updating samba
Steps to Reproduce:
1. download the samba package
2. install it using rpm
Actual results: the file /etc/samba/smbpasswd is zeroed
Expected results: to mantain the original with the passwords
I'm encountering this as well. This is a serious problem! Losing password data
is a Bad Thing!
Looking into this.
For security reasons, it was required to move "smbpasswd" from /etc/samba to
/var/lib/samba/private. The update should correctly have taken care of that.
Can you please verify if pdbedit still can list your smbpasswd accounts from the
new location with "pdbedit -L" ?
Does the update also edit smb.conf to reflect where the file was moved to, or
does it assume (incorrectly) that the default location is being used, i.e., is
nto specified explicitly in smb.conf. If it makes that assumption, then
perhaps that's the problem, because my config file does specify the "smb passwd
file" setting explicitly.
The same happens with me. I think it is a litte "extreme" to modify the place
where smbpasswd is without, at least, give one warning like when a file is moved
No, the upgrade process currently doesn't handle that, can you please provide an
example "smb passwd file" parameter from your smb.conf so that I can work on a
proper fix ?
RTFM. Search for "smb passwd file" in the smb.conf man page.
would you mind being a bit more collaborative and abstain from totally useless
Your passwords are not lost, they are just located elsewhere.
I did a mistake in not checking the "smb passwd file" at this time, so we just
want to make sure we will handle it properly next time, therefore we are asking
for you or Miguel to post your smb.conf file.
We do perfectly now how to read a man page, we just ask the configuration file
to evaluate if there is something else that may have been forgotten.
It's in smb.conf from samba-common-3.0.21b-2.i386.rpm (original FC5) for example:
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
You have to uncomment it of course.
Thanks for the example, Nerijus.
Simo has a possible fix, reassigning to him.
OK I am committing code to make sure we don't move these files if they are
explicitly referenced in the current smb.conf
samba-3.0.25b-2.fc7 has been pushed to the Fedora 7 testing repository. If problems still persist, please make note of it in this bug report.
This isn't fixed. Updating to samba-3.0.25b-2.fc8 once again renamed my
/etc/samba/smbpasswd file to /var/lib/samba/private. I see no evidence in the
samba-common postinstall script that this problem has been fixed, even though
this bug ticket and the samba-common changelog claim that it has.
thanks for catching this, for some reason the patch got applied to F-7's spec
file but not to rawhide file. I've just committed a change and started building
a new package.
samba-3.0.25b-2.fc7 has been pushed to the Fedora 7 stable repository. If problems still persist, please make note of it in this bug report.