0
Answered

Ajenti and samba user authentication issue...?

Jason Sauders 6 years ago updated by Eugene Pankov (Project coordinator) 6 years ago 9

Hello friends. I hope I'm in the right place... I just fired up a test server with Ajenti to play around with. So far I am really liking what I see, but I am somewhat confused. I set up a samba share and I can see it and all of that but I keep getting authentication issues when I connect. I have continually went through and 'set' the password, followed by hitting 'save' and then restarting the service. But each and every time I go to my file manager and connect to the samba share, it tanks, citing user authentication issue. Out of curiosity, I dropped to a terminal and ran sudo smbpasswd -a user and entered in the same password I was trying to 'set' in the web UI... and it worked fine... So it seems as if the connection between Ajenti and Samba isn't fully issuing a smbpasswd -a command as I was assuming it would. Is there something in my practice that I'm doing wrong? Or is there some sort of bug regarding this behavior? Thanks for any and all information! 

Answer

Answer
Answered

Thanks for the feedback! You're right, the "set" button was trying to set the password, but that didn't work because the user wasn't added to smbpasswd db yet. I've just fixed that; you'll receive the fix in the nearest update.

GOOD, I'M SATISFIED
Satisfaction mark by Jason Sauders 6 years ago
Answer
Answered

Thanks for the feedback! You're right, the "set" button was trying to set the password, but that didn't work because the user wasn't added to smbpasswd db yet. I've just fixed that; you'll receive the fix in the nearest update.

Seriously? Wow. A big thanks to you and the team for re-writing the definition of awesome!

Thanks for your fast response. I'm still having a bit of difficulty though. I tried an update/upgrade and I saw some updates for Ajenti so I went through that but I'm still having trouble as mentioned above. I tried to upgrade through the web UI but nothing was available (likely due to the terminal-based upgrade I did prior). I ran another update/upgrade and it says it's fully up to date. For kicks I rebooted the entire server but same deal... if I smbpasswd -a in terminal, works fine, but not if I "set" it in the web UI. Thanks for your input! Your time is appreciated. 

Do you receive 'Password updated' message when clicking 'set'?

Could you please check manually by running 'smbpasswd -a -s <username>' and entering password twice, whether this command is working?

Yeah - it's the same as it was before. That command in terminal works, but issuing it via Ajenti's web UI entirely does not. 

I have just re-checked with 1.2.6 and it's working. Could it be something else? Could you make sure (by using 'sudo pdbedit -L') that user is indeed not being added?


Same issue here. The user is added (pdbedit-L shows the user) but the password is not set by the Ajenti interface. With 'smbpasswd' I can set the password and then I can access the share.