LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-30-2017, 07:58 PM   #1
RPN
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 18

Rep: Reputation: 5
New Samba Install Not Working With Toshiba Security Camera


I recently upgraded my server to the “current” version of Slackware. Before doing so I rsynced every OS directory to a directory on another mounted disk so I would have access to any and all configuration files after the install to avoid “reinventing the wheel”. Everything went well using the past configuration files either directly or as models except for Samba. The problem however is not with the shares the Windows PCs access. They all worked fine right from the start.

The problem is with a couple Toshiba security cameras that access the server using a Samba share for continuous direct storage. The version of Samba based on the file date of the smbd binary file I found in the backup directory indicates the old version is version 4.1.6. The current Samba install is version 4.6.5. The last two lines of the log after a failed connection attempt by the cameras indicate that the share is not working for the following reason

Code:
../source3/auth/auth.c:315(auth_check_ntlm_password)
Code:
check_ntlm_password:  Authentication for user [user] -> [user] FAILED with error NT_STATUS_WRONG_PASSWORD
I made sure the password was correct but it didn’t help. I even used smbpasswd with the add user option (-a) to verify the password since research indicated that worked for someone who was having trouble with password failure.

After doing additional research it appeared the cure was going to be adding the line

Code:
client use spnego = no
high up in the global section of the smb.conf file.

When that didn’t work more Google searches indicated that adding

Code:
available = yes
in the share configuration section might help. No such luck.

Finally, based on another reference I added the following to the smb.conf file in the global section

Code:
client ntlmv2 auth = no
I had great hopes for this since “ntlm” was in the error message but it didn’t help. I am still receiving the same error message in the log.



The pertinent area of my smb.conf files now reads is a follows

Code:
[global]
client use spnego = no
client ntlmv2 auth = no
lanman auth = yes
client lanman auth = yes
client plaintext auth = yes
It was working fine with just the last three lines prior to the change in versions. Anyone have some fresh ideas of what to try next. The court of last resort is reinstalling Samba 4.1.6 in the hope that cures the problem but given a choice I would like to make the new version work.

While I am waiting I will keep looking and trying things. Being persistent can often make up for not being good.
 
Old 07-30-2017, 09:40 PM   #2
RPN
LQ Newbie
 
Registered: Aug 2005
Distribution: Slackware
Posts: 18

Original Poster
Rep: Reputation: 5
After trying a lot of different things I stumbled on to a solution. I added


Code:
ntlm auth = yes

to the smb.conf file.


It now looks like the following.

Code:
[global]
lanman auth = Yes
client lanman auth = Yes
client plaintext auth = Yes
ntlm auth = yes
I am guessing the default on the new version of Samba is ntlmv2 but turning it off which I first tried is not the answer. You actually have to tell it to use ntlm if needed which I assume is an older version 1.

Perhaps at least this overly long thread might help someone else.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can i install Ubuntu 9.04 on my Toshiba L300 - 1A6 and all hardware working? Toki123 Linux - Laptop and Netbook 4 08-10-2009 01:48 PM
Can i install Ubuntu 9.04 on my Toshiba L300 - 1A6 and all hardware working? Toki123 Linux - Software 0 08-10-2009 05:37 AM
Problems installing Chicony USB 2.0 camera in Toshiba Laptop - Distro: Slackware 12 caduqued Linux - Laptop and Netbook 8 04-16-2008 01:58 PM
Problems installing Chicony USB 2.0 camera in Toshiba Laptop - Distro: Slackware 12 caduqued Linux - Desktop 1 04-11-2008 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration