Samba won’t let me browse my work computers

I have been using Ubuntu at work since day one, just over a year. I have never had any problems accessing windows shares on the network before I did a clean install of Ubuntu 11.10 on the laptop they gave me. I had upgraded the desktop at work from 10.04 to 11.10 and I was still able to access the network shares. However, the fresh install of 11.10 did not let me. It kept saying password required for machineX. 

I found this bug in Ubuntu and I thought this was my problem.  The default hostname that Ubuntu chose when I was setting up was something like developer-dell-lattitune-e4260. After doing some more research I tried changing my hostname to a2nb and that fixed it. Just for kicks in rebooted the machine in windows and changed the network name. Windows only lets you enter 15 characters. I guess that is the maximum length you can use in Ubuntu if you want to access windows shares using samba. 
To change your hostname you must:
  1. edit /etc/hostname and type the new name that you want. 
  2. edit /etc/hosts and update the corresponding entry in there to match the name you put in the hostname file.
  3. reboot.

I almost forgot, one other developer at work had the same issue after she installed Ubuntu on her laptop, Changing the hostname worked for her as well.


This entry was posted in Mysteries. Bookmark the permalink.

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>