LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-04-2015, 04:28 PM   #1
ritaopal
LQ Newbie
 
Registered: May 2015
Location: Vancouver, BC
Distribution: Debian
Posts: 6

Rep: Reputation: Disabled
Jessie upgrade to samba


Over last weekend I upgraded one of my Debian boxes to Jessie. I have two, both running samba in order to communicate and file share with a Windows 7 laptop. All three machines have fixed IP addresses in my private molard.ca domain with its 3-bit address space.

Since the upgrade Windows 7 complains about accessing shares on the upgraded Debian machine -- it suggests checking the spelling -- but on a subsequent attempt connects as it did before. I can reproduce this behaviour using smbclient: a first attempt to list shares has "session setup failed NTS_STATUS_UNSUCCESSFUL" but an immediately following attempt succeeds.

I also have failures using the printer attached to the Debian machine from Windows, but I suspect that is the same problem -- the first connection attempt fails, and that cancels the print job.

I can provide my smb.conf file if necessary, but I suspect there has been some simple change in configuration for samba or some of its required packages. There was a syntax change, which I was able to fix, required to mount Windows directories on the Debian machine.

I can be contacted as roger@molard.ca
 
Old 05-05-2015, 04:10 PM   #2
ritaopal
LQ Newbie
 
Registered: May 2015
Location: Vancouver, BC
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
Further information on the above problem from a more verbose samba log file: the first attempt to list shares using smbclient fails with "getpwuid(4294967295) failed". Subsequent attempts, if they occur relatively soon, are successful "check_ntlm_password: authentication for user [root] -> [root] -> [root] succeeded".

I am not familiar with how the software works but it seems that the getpwuid process is being fed a garbage uid number. For some reason this does not occur again until after some timeout period.
 
Old 05-05-2015, 04:25 PM   #3
ritaopal
LQ Newbie
 
Registered: May 2015
Location: Vancouver, BC
Distribution: Debian
Posts: 6

Original Poster
Rep: Reputation: Disabled
I did claim some lengthy experience with computers: the unlikely uid number that smbclient is looking for is 2**32 - 1 --- the largest possible unsigned integer with 4 bytes, a string of binary 1's. It is obviously garbage, and clearly indicates a bug somewhere in samba or its interface.

Last edited by ritaopal; 05-05-2015 at 04:26 PM.
 
  


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
[SOLVED] Apache is broken after Jessie Debian 8 upgrade bcostacurta Debian 2 04-26-2015 01:06 PM
[SOLVED] After upgrade to Jessie, db5.1-util is being held back erik2282 Debian 11 04-21-2015 07:57 PM
Upgrade Debian Wheezy to Jessie. hack3rcon Debian 3 04-20-2015 10:03 AM
[SOLVED] About to upgrade from wheezy (stable) to jessie (testing), have a few questions first slacker_ Debian 17 05-30-2014 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:48 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