Move into the new Samba directory, and move into its source subdirectory.

Edit the smbsh.in file, vismbwrapper/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 of Samba to be under the /usr/bin directory.

Edit the Makefile.in file, viMakefile.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 the Samba binaries files will be located in the /usr/sbin directory, and that the /var
directory for Samba log files will be under the /var/log/samba subdirectory.

Edit the convert_smbpasswd file, viscript/convert_smbpasswd and 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 smbpasswd file.