Note: this may be is out of date. The current version is here: Brian's Samba quickstart guide.



Here's my quick-n-dirty method for turning a pile of Intel hardware into a Samba server.

  1. Install RedHat Linux 7.x
  2. Log in as root, type setup, and choose System Services.
  3. Enable smb. (This will cause smbd to start at boot.)
  4. Edit the file /etc/samba/smb.conf and change the workgroup name to match your workgroup's name.
  5. Issue testparm to make verify the validity of your smb.conf file.
  6. Now, either a) reboot or b) issue service smb start. If you change smb.conf further, restart the service with service smb restart. (The four options to use with 'service' are start, stop, restart, and status. There might be more, actually, but those are the only four I know of.)
  7. Now, just add users with the 'smbadduser' command. The syntax is smbadduser UNIX username:Windows username so assuming you've got a pretty small shop, it shouldn't be too hard to make sure that each user has a Windows login name that matches an account on your Linux server. For me, for example, it's just a matter of saying smbadduser brian:brian. Some text will fly by and you will be prompted to enter a password twice. There are, of course, ways to automate this, or take advantage of an already existing list, but for now, just add each user by hand, first with Linux's useradd command, then with smbadduser.
  8. Now you can connect to the server by mapping a network drive to \\ip.address\username. (In my case, on a system I just built, it was \\192.168.0.5\brian.) This will mount your home directory (/home/username) as a drive in Windows.
  9. There is much more that can be done. The most common thing is to assign a NETBIOS name to the server. Also, you can create common shared areas, share printers, have users added automatically, have their passwords synced with their local UNIX passwords, etc. SAMBA can even be a primary domain controller. However, if you just want to get a new box with a big shared drive up and running, this is all that needs to be done.
  10. (what follows is under construction)
  11. Everyone likes PDFs, right? Here's how to make a virtual network printer that you can print to from Windows that will make a PDF for you.

[Brian Ashe's home page] [brianashe.com/linux]