Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Samba broke after upgrade to Stretch (SOLVED Finally)

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Samba broke after upgrade to Stretch (SOLVED Finally)

#1 Post by 02ebz06 »

Had no problems going from Wheezy to Jessie, but Samba broke with the upgrade to Stretch.
Anybody else have this problem?

I have two servers.
Samba runs standalone on both.
One is my primary server and the one I did the upgrade on is a backup server.
Upgrade was pretty uneventful.

Username/Password is same on my Windows PC (win-7) as the Debian servers.
Also same for Samba.
When I try to connect from my PC, I get prompted for a username/password.
I type in valid info, but keeps prompting.
Been googling and fighting this for two days now.

Any ideas?

TIA
Last edited by 02ebz06 on 2017-12-31 16:03, edited 4 times in total.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch

#2 Post by 02ebz06 »

A little more information...

Samba versions is 4.2.14 on Jessie.
The upgrade to Stitch upgraded Samba to 4.5.12
Last edited by 02ebz06 on 2017-12-31 16:04, edited 1 time in total.

Bulkley
Posts: 6383
Joined: 2006-02-11 18:35
Has thanked: 2 times
Been thanked: 39 times

Re: Samba broke after upgrade to Stitch

#3 Post by Bulkley »

Wild stab in the dark: Does Samba create a configuration somewhere? Try renaming it and reboot.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch

#4 Post by 02ebz06 »

There is an smb.conf file, but it defines all the shares.
I tried removing Samba and reinstalling, that didn't help.
Getting ready to do that again and delete all the files that didn't get removed.
Last edited by 02ebz06 on 2017-12-31 16:04, edited 1 time in total.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch

#5 Post by 02ebz06 »

Well, after many hours of googling and trying different things and none working, I finally found the answer.

The problem was not with Samba, but Windoze.
Turns out Windows caches credentials. A reboot doesn't clear them.
I had to issue this command in a DOS window on each PC --> net use X: \\<servername>\<sharename> "" /user:""
It created an X drive and I could access the files.
After that I could click on a desktop shortcut to a Share and would connect directly without a username/password prompt. Whew!!!

Hopefully my agony will help someone else using Samba that has the problem after upgrading.

Here is a link to the page that solved my problem.
https://superuser.com/questions/863243/ ... x-does-not
Last edited by 02ebz06 on 2017-12-31 16:05, edited 1 time in total.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch

#6 Post by 02ebz06 »

Well, what I posted just above turned out to be a short term fix.
That works until you reboot (or log out and back in) the Windows PC. Then you get the username/password prompt again that doesn't accept a correct combo.
Last edited by 02ebz06 on 2017-12-31 16:05, edited 1 time in total.

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch (SOLVED Finally)

#7 Post by 02ebz06 »

Finally found the answer.
Had to add the following to SMB.CONF

[guest]
# This share allows anonymous (guest) access without authentication!
path = /srv/samba/guest/
read only = no
guest ok = yes


Not sure what changed or why I had to do this, but it works now.
When prompted for Username/Password, enter guest, leave password blank, and check the remember username box and hit enter.
That's it.
All future connects after a reboot or log out/in will not ask for username/password.

Now on to find why emacs broke on one server and postfix on the other.
Last edited by 02ebz06 on 2017-12-31 16:05, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Samba broke after upgrade to Stitch (SOLVED Finally)

#8 Post by stevepusser »

If there really was a Stitch release and someone asked about installing LILO on it, that would be perfect.
MX Linux packager and developer

02ebz06
Posts: 24
Joined: 2017-12-23 21:22

Re: Samba broke after upgrade to Stretch (SOLVED Finally)

#9 Post by 02ebz06 »

Yeah, I realized that this morning.
Had Stretch in the text, buy Stitch in subject.
My brain was on vacation I guess.

Post Reply