After reboot created users can't access their datasets

Status
Not open for further replies.

GuntOn

Cadet
Joined
Oct 16, 2014
Messages
5
Last sunday in building where my FreeNAS was running fine since 2014 year's december was a electrical maintenance works. Before electrical maintenance was started I turned off FreeNAS server and UPS properly. When maintenance was completed I turned UPS and FreeNAS on and all looked fine. On monday's morning I was needed to create a new user and add a dataset for him and setting up permissions too. No big deal. All was fine until I tried to connect to new created dataset with new created user and got access denied message. I know 100% username and password is correct and dataset permissions are correct. First intresting thing is that I can connect to this dataset with root user without problems. Other users and datasets what created before shutdown and power on again are working fine. Second interesting thing is if I manually add a new created user to samba users database using pdbedit -a -u username command in shell then I can normally connect to dataset BUT it helps until reboot. Afer reboot problem is back.

FreeNAS 9.2.1.9
MB: Supermicro X10SLH-F
RAM: 2*Crucial 16GB Kit DDR3-1600 ECC (CT2KIT102472BD160B) total amount 32GB
CPU: Intel Core I3-4370 3.8GHZ 4MB LGA1150 (BX80646I34370SR1PD)
HDD: 6*2TB WD Red 64MB 5400rpm (WD20EFRX) RAID-Z2
PSU: Seasonic G-Series 550W 80Plus Gold
UPS: Eaton 5S 1000VA

How I can solve this problem?

Thank you!
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Last sunday in building where my FreeNAS was running fine since 2014 year's december was a electrical maintenance works. Before electrical maintenance was started I turned off FreeNAS server and UPS properly. When maintenance was completed I turned UPS and FreeNAS on and all looked fine. On monday's morning I was needed to create a new user and add a dataset for him and setting up permissions too. No big deal. All was fine until I tried to connect to new created dataset with new created user and got access denied message. I know 100% username and password is correct and dataset permissions are correct. First intresting thing is that I can connect to this dataset with root user without problems. Other users and datasets what created before shutdown and power on again are working fine. Second interesting thing is if I manually add a new created user to samba users database using pdbedit -a -u username command in shell then I can normally connect to dataset BUT it helps until reboot. Afer reboot problem is back.

FreeNAS 9.2.1.9
MB: Supermicro X10SLH-F
RAM: 2*Crucial 16GB Kit DDR3-1600 ECC (CT2KIT102472BD160B) total amount 32GB
CPU: Intel Core I3-4370 3.8GHZ 4MB LGA1150 (BX80646I34370SR1PD)
HDD: 6*2TB WD Red 64MB 5400rpm (WD20EFRX) RAID-Z2
PSU: Seasonic G-Series 550W 80Plus Gold
UPS: Eaton 5S 1000VA

How I can solve this problem?

Thank you!
I'd try resetting the user's password. Then cycle the CIFS service.

There have been a lot of changes (and bug-fixes) regarding how samba users and groups work since 9.2.1.9. You may benefit from upgrading. The 9.2.1.9 -> 9.3-STABLE upgrade isn't always problem-free, so budget some time for it and make sure you have a way back to 9.2.1.9 if you encounter problems.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
I tried this few times but this method does not help.

Check /var/log/messages and /var/log/samba4/log.smbd for error messages that might shed light on this.

It might be that the scripts between the webgui and samba don't like the username or password you selected. Try a test user with simple password and see if it properly generates a passdb.tdb entry (which you can view through 'pdbedit -L').
 
Status
Not open for further replies.
Top