[Samba] Incorrect handling of group permissions

Peter Trifonov petert at dcn.infos.ru
Thu Jul 27 14:06:53 GMT 2006


Dear Jerry,


> wok.  Couple of questions.  Sorry if you already provided 
> this information but I can't remember.
> 
> * Is this 3.0.23 ?  or 3.0.23a ?
It is 3.0.23.
> * 32bit or 64bit system ?
This is 32-bit Pentium 4.
gcc version 3.4.4 [FreeBSD] 20050518 

Could this be a compiler bug/feature?

> * Please send me the output from 'smbd -b'.
Please see the attachment. 


With best regards,
P. Trifonov  
-------------- next part --------------
Build environment:
   Built by:    petert at dcn.research.dcn
   Built on:    Mon Jul 24 12:21:39 MSD 2006
   Built using: cc
   Build host:  FreeBSD dcn.research.dcn 6.1-RELEASE FreeBSD 6.1-RELEASE #1: Wed May 24 20:38:07 MSD 2006     petert at dcn.research.dcn:/usr/src/sys/i386/compile/SERVER  i386
   SRCDIR:      /usr/ports/net/samba3/work/samba-3.0.23/source
   BUILDDIR:    /usr/ports/net/samba3/work/samba-3.0.23/source

Paths:
   SBINDIR: /usr/local/sbin
   BINDIR: /usr/local/bin
   SWATDIR: /usr/local/share/swat
   CONFIGFILE: /usr/local/etc/smb.conf
   LOGFILEBASE: /var/log/samba
   LMHOSTSFILE: /usr/local/etc/lmhosts
   LIBDIR: /usr/local/lib/samba
   SHLIBEXT: so
   LOCKDIR: /var/db/samba
   PIDDIR: /var/run
   SMB_PASSWD_FILE: /usr/local/private/smbpasswd
   PRIVATE_DIR: /usr/local/private

 System Headers:
   HAVE_SYS_ACL_H
   HAVE_SYS_CDEFS_H
   HAVE_SYS_EXTATTR_H
   HAVE_SYS_FCNTL_H
   HAVE_SYS_FILIO_H
   HAVE_SYS_IOCTL_H
   HAVE_SYS_IPC_H
   HAVE_SYS_MMAN_H
   HAVE_SYS_MOUNT_H
   HAVE_SYS_PARAM_H
   HAVE_SYS_RESOURCE_H
   HAVE_SYS_SELECT_H
   HAVE_SYS_SHM_H
   HAVE_SYS_SOCKET_H
   HAVE_SYS_SOCKIO_H
   HAVE_SYS_STATVFS_H
   HAVE_SYS_STAT_H
   HAVE_SYS_SYSCALL_H
   HAVE_SYS_SYSLOG_H
   HAVE_SYS_TIME_H
   HAVE_SYS_TYPES_H
   HAVE_SYS_UIO_H
   HAVE_SYS_UNISTD_H
   HAVE_SYS_UN_H
   HAVE_SYS_WAIT_H

 Headers:
   HAVE_AIO_H
   HAVE_ARPA_INET_H
   HAVE_COM_ERR_H
   HAVE_CTYPE_H
   HAVE_DIRENT_H
   HAVE_DLFCN_H
   HAVE_FAM_H
   HAVE_FCNTL_H
   HAVE_FLOAT_H
   HAVE_GLOB_H
   HAVE_GRP_H
   HAVE_GSSAPI_H
   HAVE_INTTYPES_H
   HAVE_KRB5_H
   HAVE_LANGINFO_H
   HAVE_LBER_H
   HAVE_LDAP_H
   HAVE_LIMITS_H
   HAVE_LOCALE_H
   HAVE_MEMORY_H
   HAVE_NETINET_IN_SYSTM_H
   HAVE_NETINET_IP_H
   HAVE_NETINET_TCP_H
   HAVE_NET_IF_H
   HAVE_NSSWITCH_H
   HAVE_NSS_H
   HAVE_POLL_H
   HAVE_READLINE_HISTORY_H
   HAVE_READLINE_READLINE_H
   HAVE_RPCSVC_NIS_H
   HAVE_RPCSVC_YPCLNT_H
   HAVE_RPCSVC_YP_PROT_H
   HAVE_RPC_NETTYPE_H
   HAVE_RPC_RPC_H
   HAVE_SECURITY_PAM_APPL_H
   HAVE_SECURITY_PAM_MODULES_H
   HAVE_STDARG_H
   HAVE_STDINT_H
   HAVE_STDLIB_H
   HAVE_STRINGS_H
   HAVE_STRING_H
   HAVE_SYSLOG_H
   HAVE_TERMIOS_H
   HAVE_UNISTD_H
   HAVE_UTIME_H

 UTMP Options:
   HAVE_UTMP_H
   HAVE_UT_UT_HOST
   HAVE_UT_UT_NAME
   HAVE_UT_UT_TIME
   WITH_UTMP

 HAVE_* Defines:
   HAVE_ACL_GET_PERM_NP
   HAVE_ADDR_TYPE_IN_KRB5_ADDRESS
   HAVE_AP_OPTS_USE_SUBKEY
   HAVE_ASPRINTF
   HAVE_ASPRINTF_DECL
   HAVE_ATEXIT
   HAVE_BER_SCANF
   HAVE_C99_VSNPRINTF
   HAVE_CHECKSUM_IN_KRB5_CHECKSUM
   HAVE_CHMOD
   HAVE_CHOWN
   HAVE_CHROOT
   HAVE_COMPILER_WILL_OPTIMIZE_OUT_FNS
   HAVE_CONNECT
   HAVE_COPY_AUTHENTICATOR
   HAVE_CRYPT
   HAVE_CUPS
   HAVE_DEVICE_MAJOR_FN
   HAVE_DEVICE_MINOR_FN
   HAVE_DLCLOSE
   HAVE_DLERROR
   HAVE_DLOPEN
   HAVE_DLSYM
   HAVE_DUP2
   HAVE_ENCTYPE_ARCFOUR_HMAC_MD5
   HAVE_ENDNETGRENT
   HAVE_ERRNO_DECL
   HAVE_ETYPE_IN_ENCRYPTEDDATA
   HAVE_EXECL
   HAVE_EXPLICIT_LARGEFILE_SUPPORT
   HAVE_EXTATTR_DELETE_FD
   HAVE_EXTATTR_DELETE_FILE
   HAVE_EXTATTR_DELETE_LINK
   HAVE_EXTATTR_GET_FD
   HAVE_EXTATTR_GET_FILE
   HAVE_EXTATTR_GET_LINK
   HAVE_EXTATTR_LIST_FD
   HAVE_EXTATTR_LIST_FILE
   HAVE_EXTATTR_LIST_LINK
   HAVE_EXTATTR_SET_FD
   HAVE_EXTATTR_SET_FILE
   HAVE_EXTATTR_SET_LINK
   HAVE_E_DATA_POINTER_IN_KRB5_ERROR
   HAVE_FAM_CHANGE_NOTIFY
   HAVE_FCHMOD
   HAVE_FCHOWN
   HAVE_FCNTL_LOCK
   HAVE_FREE_AP_REQ
   HAVE_FSTAT
   HAVE_FSYNC
   HAVE_FTRUNCATE
   HAVE_FTRUNCATE_EXTEND
   HAVE_FUNCTION_MACRO
   HAVE_GETCWD
   HAVE_GETDENTS
   HAVE_GETDIRENTRIES
   HAVE_GETGRENT
   HAVE_GETGRNAM
   HAVE_GETGROUPLIST
   HAVE_GETNETGRENT
   HAVE_GETRLIMIT
   HAVE_GETTIMEOFDAY_TZ
   HAVE_GLOB
   HAVE_GRANTPT
   HAVE_GSSAPI
   HAVE_GSS_DISPLAY_STATUS
   HAVE_ICONV
   HAVE_IFACE_AIX
   HAVE_IMMEDIATE_STRUCTURES
   HAVE_INITGROUPS
   HAVE_INNETGR
   HAVE_IPRINT
   HAVE_KRB5
   HAVE_KRB5_ADDRESSES
   HAVE_KRB5_AUTH_CON_SETKEY
   HAVE_KRB5_CRYPTO
   HAVE_KRB5_CRYPTO_DESTROY
   HAVE_KRB5_CRYPTO_INIT
   HAVE_KRB5_DECODE_AP_REQ
   HAVE_KRB5_ENCTYPES_COMPATIBLE_KEYS
   HAVE_KRB5_FREE_DATA_CONTENTS
   HAVE_KRB5_FREE_ERROR_CONTENTS
   HAVE_KRB5_GET_DEFAULT_IN_TKT_ETYPES
   HAVE_KRB5_GET_KDC_CRED
   HAVE_KRB5_GET_PW_SALT
   HAVE_KRB5_KEYBLOCK_KEYVALUE
   HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK
   HAVE_KRB5_KRBHST_GET_ADDRINFO
   HAVE_KRB5_KT_COMPARE
   HAVE_KRB5_KT_FREE_ENTRY
   HAVE_KRB5_KU_OTHER_CKSUM
   HAVE_KRB5_MK_REQ_EXTENDED
   HAVE_KRB5_PRINCIPAL_COMPARE_ANY_REALM
   HAVE_KRB5_PRINCIPAL_GET_COMP_STRING
   HAVE_KRB5_SESSION_IN_CREDS
   HAVE_KRB5_SET_DEFAULT_IN_TKT_ETYPES
   HAVE_KRB5_STRING_TO_KEY
   HAVE_KRB5_STRING_TO_KEY_SALT
   HAVE_LDAP
   HAVE_LDAP_ADD_RESULT_ENTRY
   HAVE_LDAP_DN2AD_CANONICAL
   HAVE_LDAP_INIT
   HAVE_LDAP_INITIALIZE
   HAVE_LDAP_SET_REBIND_PROC
   HAVE_LIBASN1
   HAVE_LIBCOM_ERR
   HAVE_LIBGSSAPI
   HAVE_LIBKRB5
   HAVE_LIBLBER
   HAVE_LIBLDAP
   HAVE_LIBPAM
   HAVE_LIBREADLINE
   HAVE_LIBROKEN
   HAVE_LINK
   HAVE_LONGLONG
   HAVE_MAKEDEV
   HAVE_MEMMOVE
   HAVE_MEMSET
   HAVE_MKNOD
   HAVE_MKTIME
   HAVE_MLOCK
   HAVE_MLOCKALL
   HAVE_MMAP
   HAVE_MUNLOCK
   HAVE_MUNLOCKALL
   HAVE_NANOSLEEP
   HAVE_NATIVE_ICONV
   HAVE_NEW_LIBREADLINE
   HAVE_NL_LANGINFO
   HAVE_NO_AIO
   HAVE_PATHCONF
   HAVE_PIPE
   HAVE_POLL
   HAVE_POSIX_ACLS
   HAVE_PRCTL
   HAVE_PREAD
   HAVE_PWRITE
   HAVE_RAND
   HAVE_RANDOM
   HAVE_READLINK
   HAVE_REALPATH
   HAVE_RENAME
   HAVE_ROKEN_GETADDRINFO_HOSTSPEC
   HAVE_ROOT
   HAVE_SECURE_MKSTEMP
   HAVE_SELECT
   HAVE_SENDFILE
   HAVE_SETBUFFER
   HAVE_SETENV
   HAVE_SETGROUPS
   HAVE_SETLINEBUF
   HAVE_SETLOCALE
   HAVE_SETNETGRENT
   HAVE_SETPGID
   HAVE_SETRESGID
   HAVE_SETRESGID_DECL
   HAVE_SETRESUID
   HAVE_SETRESUID_DECL
   HAVE_SETSID
   HAVE_SHMGET
   HAVE_SHM_OPEN
   HAVE_SIGACTION
   HAVE_SIGBLOCK
   HAVE_SIGPROCMASK
   HAVE_SIG_ATOMIC_T_TYPE
   HAVE_SNPRINTF
   HAVE_SNPRINTF_DECL
   HAVE_SOCKLEN_T_TYPE
   HAVE_SOCK_SIN_LEN
   HAVE_SRAND
   HAVE_SRANDOM
   HAVE_STAT_ST_BLKSIZE
   HAVE_STAT_ST_BLOCKS
   HAVE_STRCASECMP
   HAVE_STRCHR
   HAVE_STRDUP
   HAVE_STRERROR
   HAVE_STRFTIME
   HAVE_STRLCAT
   HAVE_STRLCPY
   HAVE_STRPBRK
   HAVE_STRSIGNAL
   HAVE_STRTOUL
   HAVE_STRUCT_SIGEVENT
   HAVE_STRUCT_SIGEVENT_SIGEV_VALUE_SIGVAL_PTR
   HAVE_STRUCT_STAT_ST_RDEV
   HAVE_STRUCT_TIMESPEC
   HAVE_ST_RDEV
   HAVE_SYMLINK
   HAVE_SYSCALL
   HAVE_SYSCONF
   HAVE_SYSLOG
   HAVE_TIMEGM
   HAVE_UNIXSOCKET
   HAVE_USLEEP
   HAVE_UTIMBUF
   HAVE_UTIME
   HAVE_UTIMES
   HAVE_VASPRINTF
   HAVE_VASPRINTF_DECL
   HAVE_VA_COPY
   HAVE_VOLATILE
   HAVE_VSNPRINTF
   HAVE_VSNPRINTF_DECL
   HAVE_VSYSLOG
   HAVE_WAITPID
   HAVE_WORKING_AF_LOCAL
   HAVE_YP_GET_DEFAULT_DOMAIN
   HAVE__CHDIR
   HAVE__CLOSE
   HAVE__DUP
   HAVE__DUP2
   HAVE__ET_LIST
   HAVE__FCHDIR
   HAVE__FCNTL
   HAVE__FORK
   HAVE__FSTAT
   HAVE__LSTAT
   HAVE__OPEN
   HAVE__READ
   HAVE__SEEKDIR
   HAVE__STAT
   HAVE__WRITE
   HAVE___GETCWD

 --with Options:
   WITH_ADS
   WITH_PAM
   WITH_SENDFILE
   WITH_SYSLOG
   WITH_UTMP
   WITH_WINBIND

 Build Options:
   BROKEN_GETGRNAM
   COMPILER_SUPPORTS_LL
   DEFAULT_DISPLAY_CHARSET
   DEFAULT_DOS_CHARSET
   DEFAULT_UNIX_CHARSET
   FREEBSD
   FREEBSD_SENDFILE_API
   KRB5_PRINC_REALM_RETURNS_REALM
   KRB5_VERIFY_CHECKSUM_ARGS
   LDAP_SET_REBIND_PROC_ARGS
   PACKAGE_BUGREPORT
   PACKAGE_NAME
   PACKAGE_STRING
   PACKAGE_TARNAME
   PACKAGE_VERSION
   REPLACE_GETPASS
   RETSIGTYPE
   SEEKDIR_RETURNS_VOID
   SIZEOF_INT
   SIZEOF_LONG
   SIZEOF_LONG_LONG
   SIZEOF_OFF_T
   SIZEOF_SHORT
   STAT_STATVFS
   STAT_ST_BLOCKSIZE
   STDC_HEADERS
   STRING_STATIC_MODULES
   SYSCONF_SC_NGROUPS_MAX
   SYSCONF_SC_NPROCESSORS_ONLN
   SYSCONF_SC_PAGESIZE
   TIME_WITH_SYS_TIME
   USE_SETRESUID
   WITH_ADS
   WITH_PAM
   WITH_SENDFILE
   WITH_SYSLOG
   WITH_WINBIND
   auth_script_init
   charset_CP437_init
   charset_CP850_init
   loff_t
   offset_t
   static_decl_auth
   static_decl_charset
   static_decl_idmap
   static_decl_pdb
   static_decl_rpc
   static_decl_vfs
   static_init_auth
   static_init_charset
   static_init_idmap
   static_init_pdb
   static_init_rpc
   static_init_vfs
   vfs_audit_init
   vfs_cap_init
   vfs_default_quota_init
   vfs_expand_msdfs_init
   vfs_extd_audit_init
   vfs_fake_perms_init
   vfs_full_audit_init
   vfs_netatalk_init
   vfs_readonly_init
   vfs_recycle_init
   vfs_shadow_copy_init

Type sizes:
   sizeof(char):         1
   sizeof(int):          4
   sizeof(long):         4
   sizeof(long long):    8
   sizeof(uint8):        1
   sizeof(uint16):       2
   sizeof(uint32):       4
   sizeof(short):        2
   sizeof(void*):        4
   sizeof(size_t):       4
   sizeof(off_t):        8
   sizeof(ino_t):        4
   sizeof(dev_t):        4

Builtin modules:
    pdb_ldap pdb_smbpasswd pdb_tdbsam rpc_lsa rpc_reg rpc_lsa_ds rpc_wks rpc_svcctl rpc_ntsvcs rpc_net rpc_netdfs rpc_srv rpc_spoolss rpc_eventlog rpc_samr idmap_ldap idmap_tdb auth_sam auth_unix auth_winbind auth_server auth_domain auth_builtin


More information about the samba mailing list