Samba - smbpasswd problem

3 posts / 0 new
Last post
#1 Mon, 2016-02-08 08:48
mclusky
  • mclusky's picture
  • Offline
  • Last seen: 1 year 9 months ago
  • Joined: 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.

Tue, 2016-02-09 12:21
mclusky
  • mclusky's picture
  • Offline
  • Last seen: 1 year 9 months ago
  • Joined: 2014-08-25

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!

Fri, 2017-03-17 22:50
Metalmaus
  • Metalmaus's picture
  • Offline
  • Last seen: 1 year 1 week ago
  • Joined: 2017-03-15

thx

Log in or register to post comments