Last week we dug into the Samba system and suggested that you download a copy so we could set it up. Given the number of possible server operating systems that Samba is available on, we’re going to overview this procedure over Linux.Depending on which Linux distribution you use, you can choose to install: a binary version you compile from source, which is likely to be mandatory if you have compiled a custom Linux kernel; a pre-compiled binary version, which is usually at a lower release level than you would get from compiling from the latest source; or as a “package” – in the case of Red Hat Linux, this is the “rpm” version.For those of you not familiar with RPM the acronym is for Red Hat Package Manager, a powerful software management system that installs, removes, upgrades, verifies and builds RPM archives. These archives are files of the type .rpm that include source and or binaries, package identification data, component checksums and scripts for carrying out various operations.There are all sorts of variants of package managers available for different Linux distributions such as the ancient Slackware Linux installpkg through to Debian’s apt and Red Hat’s rpm. The Samba site has downloadable packages for most of the mainstream package managers, which you’ll find in the appropriate operating system subdirectory. Down to businessAs much as we’d like to discuss the intricacies of compiling Samba and running package managers, space prohibits, so we’ll suggest that you check the documentation for your operating system and the version of Samba you downloaded. Once you have installed Samba it needs to be configured. Under Red Hat Linux 9 the configuration file is named smb.conf and is created by the rpm processes in /etc/samba.Here’s a simple configuration file:[global]workgroup = GEARHEADencrypt passwords = no[myshare] comment = My documentspath = /home/mgibbs/documentsread only = noguest ok = yes The global section above declares that we’re defining a workgroup named GEARHEAD and that we don’t want to use encrypted passwords (the next version of Samba, Version 3, won’t need this command because passwords will be encrypted by default). The myshare section defines a share of the same name that has both read and write privileges and has guest access enabled (a horribly unsecure combination).Now, while you can set up Samba’s configuration file by hand, you might prefer to use GUI-based applications such as the Samba Web Administration Tool (SWAT), or if you are running Red Hat Linux 9, the Samba Configuration tool called redhat-config-samba. But while these tools are good – SWAT is by far the most sophisticated – if you need complex custom parameters, there’s no alternative but to get down and dirty with a text editor.And when you make changes to a Samba configuration – particularly when you’ve edited it by hand – you will have the problem of trying to figure out if the configuration will work. Before you do anything else you should run the program testparm, which scans the configuration file for syntactic errors and dumps all defined and defaulted parameter values to the console.Armed with this information and with the assistance of the Samba help files, you should be able to get a working SMB service up and running. We also would highly recommend that you get a copy of Using Samba by Ts, Eckstein and Collier-Brown (O’Reilly, 2003) – an invaluable and thorough reference to the Samba system.Next week will be something completely different. In the meantime share your data with gearhead@gibbs.com. Related content how-to Doing tricks on the Linux command line Linux tricks can make even the more complicated Linux commands easier, more fun and more rewarding. By Sandra Henry-Stocker Dec 08, 2023 5 mins Linux news TSMC bets on AI chips for revival of growth in semiconductor demand Executives at the chip manufacturer are still optimistic about the revenue potential of AI, as Nvidia and its partners say new GPUs have a lead time of up to 52 weeks. By Sam Reynolds Dec 08, 2023 3 mins CPUs and Processors Technology Industry news End of road for VMware’s end-user computing and security units: Broadcom Broadcom is refocusing VMWare on creating private and hybrid cloud environments for large enterprises and divesting its non-core assets. By Sam Reynolds Dec 08, 2023 3 mins Mergers and Acquisitions news analysis IBM cloud service aims to deliver secure, multicloud connectivity IBM Hybrid Cloud Mesh is a multicloud networking service that includes IT discovery, security, monitoring and traffic-engineering capabilities. By Michael Cooney Dec 07, 2023 3 mins Network Security Network Security Network Security Podcasts Videos Resources Events NEWSLETTERS Newsletter Promo Module Test Description for newsletter promo module. Please enter a valid email address Subscribe