Caldera Security Advisory: Samba

Written By
Web Webster
Web Webster
Jun 27, 2001
Date: Tue, 26 Jun 2001 11:33:45 -0600
From: Support Info <supinfo@caldera.com>
Subject: Security Update: [CSSA-2001-024.0] OpenLinux: samba remote root problem


                   Caldera International, Inc.  Security Advisory

Subject:                OpenLinux: samba remote root problem
Advisory number:        CSSA-2001-024.0
Issue date:             2001 June, 25
Cross reference:



1. Problem Description

   There is a file overwrite vulnerability in the log facilities
   of the Samba filesharing package which can be used by a remote
   attacker to overwrite system files and to gain root access.
   This requires a specific logging entry to be set.

   Caldera OpenLinux is not vulnerable to this problem in its default
   configuration, because it does not include a default configuration
   file for Samba and the sample configuration we ship has logging
   commented out.

   To check whether you are vulnerable to the problem, run

        grep log.*%m /etc/samba.d/smb.conf

   If it shows %m directly following a '/', as in:

        log file = /var/log/samba.d/%m

   you are vulnerable to the problem.

2. Solution

   If your configuration of samba is affected by this vulnerability,
   you can fix it using either of the following approaches:

   Using the commandline, do as root:

        - Edit /etc/samba.d/smb.conf and make sure the log file
          statement reads like this:

            log file = /var/log/samba.d/smb.%m

        - /etc/rc.d/init.d/samba restart

   Using SWAT:

        - Open http://localhost:901/ in a web browser.
        - Authenticate using the root account and password.
        - Click on the 'Globals' button from the Top Menubar.
        - Go to the 'log file' entry entry and change it to:

            /var/log/samba.d/smb.%m

        - Press the 'Commit Changes' button on top of the page.

   Using Webmin:

        - Open Webmin as described in the documentation.
        - Select Servers->Samba Windows Filesharing
        - Press the 'Miscellaneous Options' Button.
        - Change the logfile entry to read

            /var/log/samba.d/smb.%m

        - Press the 'Save' button.


3. References

   This and other Caldera security resources are located at:

   http://www.caldera.com/support/security/index.html

   This security fix closes Caldera's internal Problem Report 10136.

4. Disclaimer

   Caldera International, Inc. is not responsible for the misuse of
   any of the information we provide on this website and/or through our
   security advisories. Our advisories are a service to our customers
   intended to promote secure installation and use of Caldera OpenLinux.

   Caldera wishes to thank Andrew Tridgell of the Samba Team and
   Wichert Akkerman of Debian for their assistance.
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.