Networking Windows and Linux with Samba

Networking Windows and Linux with Samba

I have a network via LAN with three computers. Two of them run Windows 2000 and the third runs Linux. I have only one CD-ROM in server 2000 and want to share it with Linux. How can I set this up?

    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

If you have both Windows and Linux PCs on a LAN and wish to share both devices and files, I would recommend Samba. Samba is a software package that gives system and network people the flexibility to make real choices in terms of setup, configuration, and choosing all types of systems and equipment, on different operating systems. It has been around since 1992, and can be run on UNIX or Linux, using TCP/IP, which allows the host interact to with a Microsoft Windows client or server as if it is a Windows file and print server, or client.

First, you'll need to share your Windows Server. From "My Computer," right click on the CD-ROM and choose "sharing." Create a share name and then configure Samba on the Linux Server.

To configure a Samba share directory on your Linux system, add the following section to the share section in the smb.conf file. With file sharing, the following statement from the config file ( /etc/samba/smb.conf) would allow users "Larry," "Curly" and "Moe" to access the directory that you need.

valid users = larry curly mo
public = no
writable = yes

After installing and configuring Samba, you can use the smbmount command to get access to your system.

Something like this will do:
smbmount //winclient/cdrom /mnt/win-cdrom -o
username=theusername

For more information on installing samba, see www.samba.org or look at this Samba learning guide.

This was first published in May 2005