ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Samba credentials not preserved upon reboot

Solved!
Go to solution

Hi,

I've just installed samba - 3.6.8-r8 from opkg on a 906x without problems and I've also added a user (same username and password as the one added to NI auth web config page) and tested it properly trough a windows client.

However, user credentials are not preserved upon reboot.

If I run this command upon reboot:

smbpasswd -e <username>

I get this error:

Failed to find user smbUser in passdb backend.

If I browse the pdpass with pdbedit -L command, the list is empty.

Any hint about how to sync Samba users to Linux users? Could this be related to the fact that niauth overrides standard user management tools like useradd?

Thanks

Fabio

Fabio M.
NI
Principal Engineer
0 Kudos
Message 1 of 3
(3,716 Views)
Solution
Accepted by topic author Chuck_81

Discard the request. I've solved the issue by adding the following lines:

   obey pam restrictions = Yes
   passdb backend = smbpasswd
   passwd program = /usr/bin/passwd %u
   passwd chat = *new* %n\n *Re* %n\n *pa*
   username map = /etc/samba/smbusers
   unix password sync = Yes

to the [global] section of the smb.conf file


Fabio M.
NI
Principal Engineer
Message 2 of 3
(3,178 Views)

Good, this one was a bit of a headscratcher that I hadn't really dug into, and with the difficulty folks have configuring Samba coupled with what we do to enable NIAuth users, I could see the possibility for headaches.

Mark the question as "Answered" with your own response.

0 Kudos
Message 3 of 3
(3,178 Views)