Move into the new Samba directory, and move into its source subdirectory.
Edit the
smbsh.infile, vismbwrapper/smbsh.inand change the line:SMBW_LIBDIR=${SMBW_LIBDIR-@builddir@/smbwrapper}To read:
SMBW_LIBDIR=${SMBW_LIBDIR-/usr/bin}This change will relocate the
libdirectory of Samba to be under the/usr/bindirectory.Edit the
Makefile.infile, viMakefile.inand change the line:SBINDIR = @bindir@To read:
SBINDIR = @sbindir@VARDIR = @localstadir@To read:
VARDIR = /var/log/sambaThis will specify that our
sbindirectory for the Samba binaries files will be located in the/usr/sbindirectory, and that the/vardirectory for Samba log files will be under the/var/log/sambasubdirectory.
Edit the
convert_smbpasswdfile, viscript/convert_smbpasswdand change the line:nawk 'BEGIN {FS=":"}To:
gawk 'BEGIN {FS=":"}This will specify to use the GNU Linux version of the awk text processing utility instated of the Bell Labs research version of awk program for the
smbpasswdfile.Edit the
smbmount.cfile, viclient/smbmount.cand change the lines:static void close_our_files(int client_fd) { int i; for (i = 0; i < 256; i++) { if (i == client_fd) continue; close(i); }To read:
static void close_our_files(int client_fd) { struct rlimit limits; int i; getrlimit(RLIMIT_NOFILE,&limits); for (i = 0; i < limits.rlim_max; i++) { if (i == client_fd) continue; close(i); }This step will make the
smbmount.cfile compatible with Red Hat's glibc 2.1 library.