Showing posts with label Samba. Show all posts
Showing posts with label Samba. Show all posts

Saturday, April 25, 2020

Re-enable smb1

I have just upgraded my Linux desktop to 20.04LTS, and I can any immediate major issues/bugs.

Most modern OSes have disabled support to SMB1 by default due to known security issues.  It is all good if you don't have any legacy devices.  If you are like myself who still have one of these legacy device, you may need to re-enable the smb1 support.

To re-enable smb1 support, you need to edit your /etc/samba/smb.conf and add the line below to its [global] section.


client min protocol = NT1

Wednesday, September 25, 2019

Problem connection to Samba Server

Today I have reinstalled Linux on a machine of mine, and configured it to use Samba to share a folder to the rest of my network.

However, when I tested my setup on a Windows machine, I got connection error.  I have checked my setup and everything seems to be fine.  At the end, it turns out nothing wrong with my setup as I can connect to this machine using IP.  The problem is with my NetBIOS resolver.

My Linux machine IP is 133, but the IP reported when I ping it on my Windows machine is 113.



If you have similar issue as i did, you may want to check your NetBIOS resolver too.  The problem may be in your network rather than your setting.


n.b. To clear DNS caches under Ubuntu is:

sudo systemd-resolve   --flush-caches



Tuesday, May 15, 2018

SMB3

I have issues to browse Windows Shares on my network ever since Windows retired SMB1.  Today I came across this post and its solution fixes my problem.

To make Windows shares browsable again, I added this line to /etc/samba/smb.conf

client max protocol = SMB3
This line should be put right after the line

workgroup = WORKGROUP
 Now I can browse and open share folders on my Windows machines in the network as it used to be.

Friday, March 20, 2015

Things to do after installing Xubuntu

This is a checklist that I found useful when setting up a new Xubuntu installation.

  1. NetBIOS - Allows computer names to be used rather than IP.
    1. sudo apt-get install winbind libnss-winbind
    2. Edit /etc/nsswitch.conf, and add wins to the end of the line in (3)
    3. host: files mdns4_minimal [NOTFOUND=return] dns wins
  2. Samba Configuration Tool - Allows folders to be shared with other Windows computers.
    1. sudo apt-get install system-config-samba
    2. sudo touch /etc/libuser.conf
    3. sudo system-config-samba
  3. RDP Client - Allows making remote desktop connection to a Windows machine in the network.
    1. sudo apt-get install remmina
  4. Preserve Job History - Stops CUPS preserving job history
    1. sudo pico /etc/cup/cupsd.conf
    2. add PreserveJobHistory off just before WebInterface Yes


  • Add optimized driver repository from Oibaf at https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers
  • Wednesday, July 17, 2013

    Windows 7 Share Not showing up

    I have recently reinstalled Windows 7 on a machine, and for some unknown reason, the shared folder I setup on it fails to show in network browsing, both on my Linux machine and on another Windows machine.  This has puzzled as I can't see anything wrong in my setup.

    At the end, I managed to put it back on the map by using this command:

    netsh advfirewall set allprofiles state off

    I don't know how this differs from having firewall off ... which was off.

    Anyway, guess off isn't quite off in Microsoft terms ...

    I found my solution in this forum:

    http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-7-share-not-visible-to-linux-or-mac-os-x/940ca57e-0072-4ae2-beec-ec814a3ceebe

    If you are like me who has a stuborn machine whole shows up in your network.  It may worth to give the solution suggest a go.

    Wednesday, December 8, 2010

    Samba and Windows 7 Share

    Lately I have problems to get my Linux machines to access a shared folder on my Windows 7 system. Today, I finally found the cause of the problems (with the correct magic keywords on Google), Windows Live essentials (http://forum.xbmc.org/showthread.php?t=84578). As suggested in the forum once I have removed it, everything works fine as before.

    Sunday, July 27, 2008

    Good to share!

    My sister got this cheapy Samsung ML-2010 Laser printer, and it is so simple to set up under the latest version of Linux. You plug the printer in one of the USB port, and you are ready to print. You can't get any simpler than this.


    After getting the nice test page printed, I brought up the printer set up tool, and configured the printer to be shared on the network. Both Windows XP and Vista found the printer as they should, however, they required drivers to print. As XP and Vista are two "different" operating systems, I need to download two separate large drivers for two systems (what a pain). Now, there is a problem. The drivers are come as installers, i.e. EXE files. Luckily, if you expand it using 7-zip, you will find these driver EXEs are just fancy archived files. Once you expanded the file, pointed Windows to the right direction, you are ready to print too.


    Update Previously, I have problem to print from certain application in Vista. This problem has now solves by using the connection string below instead.

    http://<hostname>:631/printers/<printername>