I've built an embedded version of samba 3.0.26b. I'm having a problem getting it started, though - it fails to start. A bit of tracing and I *think* it's failing to find secrets.tdb. strace is showing smbd dying after failing to find secrets.tdb - in the wrong place. I think the script below should take care of that, but for some reason it's looking for secrets\.tbd in the build tree and not in the embedded fs tree.... Can anyone more experienced in building samba perhaps look to see where I'm going wrong? Thanks. Here's the guts of the build script: ./autogen.sh; \ $(TARGET_CONFIGURE_OPTS) \ $(TARGET_CONFIGURE_ARGS) \ samba_cv_HAVE_GETTIMEOFDAY_TZ=yes \ samba_cv_USE_SETREUID=yes \ samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=yes \ samba_cv_HAVE_KERNEL_OPLOCKS_LINUX=no \ SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \ libreplace_cv_READDIR_GETDIRENTRIES=no \ libreplace_cv_READDIR_GETDENTS=no \ linux_getgrouplist_ok=no \ samba_cv_REPLACE_READDIR=no \ samba_cv_HAVE_WRFILE_KEYTAB=no \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ --build=$(GNU_HOST_NAME) \ --with-lockdir=/var/cache/samba \ --with-piddir=/var/run \ --with-privatedir=/etc/samba \ --with-logfilebase=/var/log/samba \ --with-configdir=/etc/samba \ --without-ldap \ --without-libaddns \ --with-included-popt \ --with-included-iniparser \ --with-smbmount \ --disable-cups \ --disable-static \ ); mkdir -p $(PKG_INSTALL_DIR)/usr/share/samba mkdir -p $(PKG_INSTALL_DIR)/var/log $(MAKE) -C $(PKG_BUILD_DIR)/source \ prefix="$(PKG_INSTALL_DIR)/usr" \ BASEDIR="$(PKG_INSTALL_DIR)/usr" \ BINDIR="$(PKG_INSTALL_DIR)/usr/bin" \ SBINDIR="$(PKG_INSTALL_DIR)/usr/bin" \ LIBDIR="$(PKG_INSTALL_DIR)/usr/lib" \ VARDIR="$(PKG_INSTALL_DIR)/var/log/samba" \ MANDIR="$(PKG_INSTALL_DIR)/usr/share/man" \ PRIVATEDIR="$(PKG_INSTALL_DIR)/etc/samba" \ SWATDIR="$(PKG_INSTALL_DIR)/usr/swat" \ LOCKDIR="$(PKG_INSTALL_DIR)/var/run/samba" \ SAMBABOOK="$(PKG_INSTALL_DIR)/usr/swat/using_samba" \ CODEPAGEDIR="$(PKG_INSTALL_DIR)/usr/share/samba" \ installservers installbin installcifsmount Samba dies with: open("/data/home/yan/openwrt/trunk/build_dir/mipsel/samba-3.0.26a/ipkg-install/etc/samba/secrets.tdb", O_RDWR|O_CREAT|O_LARGEFILE, 0600) = -1 ENOENT (No such file or directory) brk(0x55aa2000) = 0x55aa2000 brk(0x55aa3000) = 0x55aa3000 ioctl(2147483647, TIOCNXCL, 0x7fff7520) = -1 EBADF (Bad file descriptor) brk(0x55aa4000) = 0x55aa4000 time(NULL) = 1199373424 open("/etc/TZ", O_RDONLY) = -1 ENOENT (No such file or directory) time(NULL) = 1199373424 open("/etc/TZ", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/TZ", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/TZ", O_RDONLY) = -1 ENOENT (No such file or directory) geteuid() = 0 fstat64(5, {st_mode=S_IFREG|0644, st_size=2335, ...}) = 0 ioctl(2147483647, TIOCNXCL, 0x7fff7510) = -1 EBADF (Bad file descriptor) write(5, "[2008/01/03 15:17:04, 0] passdb/"..., 59) = 59 geteuid() = 0 ioctl(2147483647, TIOCNXCL, 0x7fff71a8) = -1 EBADF (Bad file descriptor) write(5, " Failed to open /data/home/yan/"..., 112) = 112 fork() = 578 --- SIGCHLD (Child exited) @ 0 (0) --- exit(0) = ? Process 577 detached root@LetheMnemosyne:/#