Samba Configuration file problem

Ali Khan pak_jobs_tar_gz at yahoo.com
Sat Feb 4 14:20:09 GMT 2006


Hi..Im compiling Samba for mips processor..It builds succesfully but when i try to connect to Samba(smbd deamon) it gives error..Sometimes error is " you dont have permissions" or sometime "it doesnt recognize the user"..
   
  Im nearly sure that im making some mistake while setting different options in the configuration file..
   
   I have attached the config file im using..Please see it and tell me wat wrong option im using..
   
  Thanks

		
---------------------------------
Brings words and photos together (easily) with
 PhotoMail  - it's free and works with Yahoo! Mail.
-------------- next part --------------
SAMBA_VER:=2.2.12
SAMBA_SOURCE:=samba-$(SAMBA_VER).tar.gz
SAMBA_SITE:=http://us5.samba.org/samba/ftp/old-versions
SAMBA_DIR:=$(BUILD_DIR)/samba-$(SAMBA_VER)/source
SAMBA_CAT:=zcat
SAMBA_BINARY:=$(SAMBA_DIR)/bin/smbd
SAMBA_TARGET_BINARY:=$(TARGET_DIR)/sbin/smbd

$(DL_DIR)/$(SAMBA_SOURCE):
     $(WGET) -P $(DL_DIR) $(SAMBA_SITE)/$(SAMBA_SOURCE)

samba-source: $(DL_DIR)/$(SAMBA_SOURCE)

$(SAMBA_DIR)/.source: $(DL_DIR)/$(SAMBA_SOURCE)
    $(SAMBA_CAT) $(DL_DIR)/$(SAMBA_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
    touch $(SAMBA_DIR)/.source

$(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.source
    (cd $(SAMBA_DIR); rm -rf config.cache; \
        $(TARGET_CONFIGURE_OPTS) \
        CFLAGS="$(TARGET_CFLAGS)" \
        ./configure \
        --target=$(GNU_TARGET_NAME) \
        --host=$(GNU_TARGET_NAME) \
        --build=$(GNU_HOST_NAME) \
        --with-privatedir=/usr/local/samba/private \
        --prefix=/usr/local/samba \
        --no-recursion \
        --with-sendfile-support \
        --disable-cups \
        --with-smbwrapper \
        --with-dce-dfs        \
        --with-automount        \
        --with-smbmount         \
        --with-profiling-data \
        --with-tdbsam           \
        --with-pam_smbpass      \
        --with-utmp  \
        --with-quotas  \
    );
#\
#        --with-smbwrapper   \
        --with-msdfs  \
        --with-spinlocks \
        --with-acl-support \
        --with-winbind \
        --with-winbind-auth-challenge \
        --with-winbind-ldap-hack   \
        --with-included-popt \
    );
touch  $(SAMBA_DIR)/.configured
#        --with-privatedir=/usr/local/samba/private \
        --prefix=/usr/local/samba \
        --exec-prefix=/ \
        --bindir=/bin \
        --sbindir=/sbin \
        --libexecdir=/usr/lib \
        --datadir=/usr/share/misc \
        --localstatedir=/var \
        --with-configdir=/etc/samba/ \
        --with-logfilebase=/var/log.smb \
        --no-recursion \
        --with-sendfile-support

$(SAMBA_BINARY): $(SAMBA_DIR)/.configured
    $(MAKE) CC=$(TARGET_CC) -C $(SAMBA_DIR)

$(SAMBA_TARGET_BINARY): $(SAMBA_BINARY)
    $(MAKE) prefix=$(TARGET_DIR)/usr/local/samba BASEDIR=$(TARGET_DIR)/usr/local/samba CC=$(TARGET_CC) -C $(SAMBA_DIR) install
#   $(MAKE) BASEDIR=$(TARGET_DIR)/bin SBINDIR=$(TARGET_DIR)/sbin/ BINDIR=$(TARGET_DIR)/bin  LIBDIR=$(TARGET_DIR)/usr/lib VARDIR=$(TARGET_DIR)/var PIDDIR=$(TARGET_DIR)/var/locks  prefix=$(TARGET_DIR)/usr CC=$(TARGET_CC) -C $(SAMBA_DIR) install

samba: uclibc $(SAMBA_TARGET_BINARY)

samba-clean:
    $(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(SAMBA_DIR) uninstall
    -$(MAKE) -C $(SAMBA_DIR) clean

samba-dirclean:
    rm -rf $(SAMBA_DIR)

#############################################################
#
# Toplevel Makefile options
#
################/#############################################
ifeq ($(strip $(BR2_PACKAGE_SAMBA)),y)
TARGETS+=samba
endif


More information about the samba-technical mailing list