Samba - smbpasswd problem
-
- Offline
- 1 year 9 months ago
- 2014-08-25
Hi
Recently I setup diskless Alpine box with alpine-3.3.1-x86 iso.
But I have problem with smbpasswd tool and permanently save its modifications.
Following guide Setting up a samba-server (http://wiki.alpinelinux.org/wiki/Setting_up_a_samba-server) everything seemed to work fine, I permanently stored all modifications with lbu and after reboot I am not able to access shares with user credentials.
Most unusual thing comparing to Samba under Linux Ubuntu is that there is no smbpasswd file created in /etc/samba (and nowhere else) even after I issue command smbpasswd -a "username"
So the situation is: after issuing command smbpasswd -a "username"
I am able to access share with "username" credentials (storing modifications with lbu), but after reboot I need to set smbpasswd again (I need to mention I replaced "username" with my unique name, smb.conf config fle remains the same between reboots).
I hope someone can direct me to find the solution.
I didn't mentioned that box is running completely from RAM and this problem doesn't occur in 'sys' installation.
The solution was quite simple.
We need to add /var/lib/samba to local backup:
lbu add /var/lib/samba
.And that's all!
thx