Skip to content

www.rolfje.com

Strange fix for SMB problems in Linux

Posted on 2011-11-28 By rolfje 4 Comments on Strange fix for SMB problems in Linux

Linux Sucks.Last week, the upgrade to Ubuntu 11 severely broke all carefully selected menu colors, graphics settings and icon sets. I gave up the fight after a few hours of effortless restoration work and switched to Linux Mint 11.

While setting up my machine and restoring the links to the company Windows file servers I could not connect. The password window would re-appear without any feedback. The fix was even stranger than the problem.

To analyze this strange problem, @sastuvel took the keys and tried the following on the command prompt:

$ smbclient //server/Share$ -U DOMAIN\\rolf -d 2
rlimit_max: increasing rlimit_max (1024) to minimum Windows
  limit (16384)
  added interface eth0 ip=fe80::5e26:aff:fe12:5a23%eth0
  bcast=fe80::ffff:ffff:ffff:ffff%eth0
  netmask=ffff:ffff:ffff:ffff::
  added interface eth0 ip=172.17.100.74 bcast=172.17.255.255
  netmask=255.255.0.0
Enter DOMAIN\rolf's password:
  tdb(unnamed): tdb_open_ex: could not open file
  /var/run/samba/gencache.tdb:
  Permission denied
  session setup failed: NT_STATUS_MORE_PROCESSING_REQUIRED
  did you forget to run kinit?

Of course we did run kinit and everything was up and running. No level of debug logging came up with something useful. After staring at this problem of a while I noticed that my hostname was “rolf-Latitude-E6510”, which seemed a bit long. In a strange last resort voodo-chicken action I edited /etc/hostname to change it to “dellmint” and rebooted the machine.

Strangely, this solved the problem. So if you’re running Linux (Mint) and have strange problems mounting SMB shares, check your hostname and change it to something simple and short. It might help.

And while you’re at it, you can also install touchpad indicator to disable your touchpad when you plug in your mouse. Why this isn’t standard in every Linux distribution baffles me just as much as the blinking wifi indicator.

Software Tags:linux, Mint, Ubuntu

Post navigation

Previous Post: Having fun at J-Fall 2011
Next Post: Catnip Watering System

Comments (4) on “Strange fix for SMB problems in Linux”

  1. Juan Carlos Camargo (@jcarloscamargo) says:
    2012-04-19 at 13:50

    Hi there. Just a big THANKS for this post. I was just going crazy with my 12.04 box against a Netapp file server until I found this. You really made my day!!

    @jcarloscamargo

    Reply
  2. nadi says:
    2012-11-25 at 19:59

    Thanks thanks thanks thanks thanks!! redicoulus problem, redicoulus solution.
    Thanks again Rolf!
    BTW, you do not need to reboot after changing the hostname….
    cheers! Nadi

    Reply
  3. Kersten says:
    2013-10-31 at 22:08

    Muchas gracias senor!!!

    Would have never came up with that!

    Made my (many) day(s)!

    Reply
  4. Billy in Seattle says:
    2016-02-07 at 04:08

    This remains a current issue (Linux Mint 17.3)

    tdb(/var/cache/samba/gencache.tdb): tdb_open_ex: could not open file /var/cache/samba/gencache.tdb: Permission denied

    Mine hostname…
    was: Linux-Inspiron-680s
    now: Linux01

    Note: I’m on day 2 of ever installing and/or using Linux.
    Thanks so much for your help.

    Reply

Leave a Reply to nadi Cancel reply

Your email address will not be published. Required fields are marked *

           

Recent Comments

  • rolfje on Methode Buijs uitgelegd
  • LinkedIn is at Peak Enshittifaction – Will Chatham's Blog on Linked-In not really Opt-in?
  • Hans j on 1N4148 diode as RF switch
  • Roaming Rhonda on DLNA on OSX, done right
  • Frans on How to fix a Krups XN2001 Nespresso machine

Tags

Anonimatron Apple backup design DIY DRM eclipse environment Fun gmail google hacking hamradio Hardware helicopter iphone ipod iTunes Java Keynote maven modelling motorcycle music news opinion oracle osx photo photography programming repair review security Software Steve Jobs T-Mobile technology Time Machine Ubuntu usability Utilities vacation windows Workshop

Categories

  • Apple (105)
  • Divorce (1)
  • Electronics (3)
  • Fun (57)
  • Games (7)
  • Hardware (72)
  • Microsoft (18)
  • Racing (14)
  • Software (134)
  • Uncategorized (65)
  • Workshop (20)

Archives

Copyright © 2025 www.rolfje.com.

Powered by PressBook WordPress theme