HostedDB - Dedicated UNIX Servers

Securing-Optimizing-RH-Linux-1_2_419
Comments and suggestions concerning this book should be mailed to gmourani@videotron.ca © Copyright 1999-2000 Gerhard Mourani and Open Network Architecture ® 419 Packages Samba Homepage: http://us1.samba.org/samba/samba.html You must be sure to download: samba-2.0.6.tar.gz Tarballs It is a good idea to make a list of files on the system before you install Samba, and one afterwards, and then compare them using ‘diff’ to find out what file it placed where. Simply run find /* > smb1’ before and ‘find /* > smb2’ after you install the software, and use ‘diff smb1 smb2 > smb’ to get a list of what changed. Compilation Decompress the tarball (tar.gz). [root@deep /]# cp samba.version.tar.gz /var/tmp [root@deep /]# cd /var/tmp [root@deep tmp]# tar xzpf samba.version.tar.gz Configure Move into the new Samba directory and then move into its “sources” subdirectory. Step 1 Edit the smbsh.in file (vi +3 smbwrapper/smbsh.in) and change the line: SMBW_LIBDIR=${SMBW_LIBDIR-@builddir@/smbwrapper} To read: SMBW_LIBDIR=${SMBW_LIBDIR-/usr/bin} This change will relocate the “lib” directory to be under “/usr/bin” directory. Step 2 Edit the Makefile.in file (vi +28 Makefile.in) and change the line: SBINDIR  =  @bindir@ To read: SBINDIR  =  @sbindir@ VARDIR  =  @localstadir@ To read: VARDIR  =  /var/log/samba This will specify that our ”sbin” directory for binaries files will be located in the ”/usr/sbin” directory and the ”/var” directory for Samba log files will be under ”/var/log/samba” subdirectory. Step 3 Edit the convert_smbpasswd file (vi +10 script/convert_smbpasswd) and change the line: nawk 'BEGIN {FS=":"} To: gawk 'BEGIN {FS=":"}