This Web page describes the simple steps needed to set up a department file/print server with RedHat/CentOS and Samba. The examples are for CentOS 4. Other Unix flavors run Samba just fine.
Updated 12-July-2006
Samba3
Offical HOW-TO (HTML) ·
Samba3 HOW-TO (5M PDF)
I can limit the SAMBA server to accept connections from only within UVA but I can log into blue.unix from anywhere in the world and use
ssh -l rtg2t samba.ip.address
to start a terminal session on the SAMBA server and administer the SAMBA server.
SSH is installed by default in CentOS version 4.
Read ENCRYPTION.txt to understand how Windows sends password text to a Samba server. Windows has changed its behavior since 1995. Win98's default behavior is different from the original Win95's behavior. Windows2000 and Windows XP can use encrypted passwords right out of the box.
The registry settings for each are listed here: Win95, Win98, W2K, and WinNT.
Because Linux is so inexpensive, you can prototype a SAMBA server. Use a machine that is usually a WinTel machine by installing the dual boot software program called GRUB (supercedes LILO). You will be prompted about GRUB during RedHat installation. Install GRUB on the Master Boot Record. Do not fear: GRUB is removed with a simple "sys c:\" command from DOS.
First, use the DOS program FIPS.EXE to split a big C drive (FAT32)
into two partitions. FIPS doesn't work on NTFS drives. Add a 2nd 2-4
GB drive when your only drive is NTFS. Install RedHat on the new
partition and test away!!
FIPS is in the dosutils directory of the RedHat CDROM. It comes with
source code and it is free. Spliting a C drive in two is not
reversible. Adding a 2nd drive is reversible.
Show your manager that it will do what it is supposed to do and put it into production!! You can even start with a second-hand pc with no permanent monitor.
References
$ smbclient //home1/yourid -U yourid
smb \> dir *.doc
smb \> get myfile.doc
smb \> exit
#!/bin/bash export PASSWD read -s -p localPassword: PASSWD # # smbmount //yourserver/homes s1 -o username=rtg2t,ip=yourserver.virginia.edu smbmount //yourserver/public s1pub -o username=rtg2t,ip=yourserver.virginia.edu PASSWD=aaaaaaaa
security = server password server = samba.main.virginia.edu # where samba.main.virginia.edu is the name of your main,fast samba server