[Samba] NetShareEnum

Hervé Kergourlay herve.kergourlay at atempo.com
Wed May 25 06:13:09 GMT 2005


the first mail was blocked because too big :-) I keep the log.nmbd for 
you if you want

again here is in attachement my smb.conf file and the /var/log/samba 
files during the call at NetShareEnum (log level = 10)

On the Windows 2000, I call NetShareEnum with a process with the 
"BUDDY\hky" identity (BUDDY is a Win 2000 standalone server)

fionux is the Redhat psychee 32 bits samba server with to share hky and 
froupie

hky is also a user on the linux with the same password as on Windows

in the smb.conf file, I set hky as a guest account
I did it without this line with the same error on NT

thanks for your help
hervé


Gerald (Jerry) Carter a écrit :

> Hervé Kergourlay wrote:
>
> >Is there anybody to help me ?
> >Is it the right place for that sort of technical request ?
>
> >I have the same problem on AS400
>
>
> >Hervé Kergourlay a écrit :
>
> >>I'm trying to list my Linux shared exported by samba
> >>from a Windows 2003 I'm using the NetShareEnum api
> >>the sample is working between 2 windows but it fails
> >>on the linux with error 5 Access Denied
> >>
> >>who to configure samba on the linux to ba able to
> >>do that ?
>
>
> This kind of questions are better suited for the samba-technical
> ml.  This is the general community list.
>
> Have you looked at the traces against the linux box?
> Also look at a level 10 debug log from smbd to see why the
> call is failing.
>
>
>
>
> cheers, jerry
> =====================================================================
> Alleviating the pain of Windows(tm)      ------- http://www.samba.org
> GnuPG Key                ----- http://www.plainjoe.org/gpg_public.asc
> "I never saved anything for the swim back."     Ethan Hawk in Gattaca

-------------- next part --------------
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not made any basic syntactic errors. 
#
#======================= Global Settings =====================================
[global]

# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = 4tec-vannes

# server string is the equivalent of the NT Description field
   server string = Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
;   hosts allow = 192.168.1. 192.168.2. 127.

# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes

# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
   printing = lprng

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest
  guest account = hky

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/samba/%m.log

# Put a capping on the size of the log files (in Kb).
   max log size = 0

# log level
   log level = 10

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = <NT-Server-Name>

# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
   encrypt passwords = no
   smb passwd file = /etc/samba/smbpasswd

# The following is needed to keep smbclient from spouting spurious errors
# when Samba is built with support for SSL.
;   ssl CA certFile = /usr/share/ssl/certs/ca-bundle.crt

# The following are needed to allow password changing from Windows to
# update the Linux system password also.
# NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above.
# NOTE2: You do NOT need these to allow workstations to change only
#        the encrypted SMB passwords. They allow the Unix password
#        to be kept in sync with the SMB password.
   unix password sync = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*

# You can use PAM's password change control flag for Samba. If
# enabled, then PAM will be used for password changes when requested
# by an SMB client instead of the program listed in passwd program.
# It should be possible to enable this without changing your passwd
# chat parameter for most setups.

   pam password change = yes

# Unix users can map to different SMB User names
;  username map = /etc/samba/smbusers

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /etc/samba/smb.conf.%m

# This parameter will control whether or not Samba should obey PAM's
# account and session management directives. The default behavior is
# to use PAM for clear text authentication only and to ignore any
# account or session management. Note that Samba always ignores PAM
# for authentication in the case of encrypt passwords = yes

  obey pam restrictions = yes

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24 

# Configure remote browse list synchronisation here
#  request announcement to, or browse list sync from:
#	a specific host or from / to a whole subnet (see below)
;   remote browse sync = 192.168.3.25 192.168.5.255
# Cause this host to announce itself to local subnets here
;   remote announce = 192.168.1.255 192.168.2.44

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
;   local master = no

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
;   os level = 33

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
;   domain master = yes 

# Preferred Master causes Samba to force a local browser election on startup
# and gives it a slightly higher chance of winning the election
;   preferred master = yes

# Enable this if you want Samba to be a domain logon server for 
# Windows95 workstations. 
;   domain logons = yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script = %m.bat
# run a specific logon batch file per username
;   logon script = %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
;   logon path = \\%L\Profiles\%U

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Server
;   wins support = yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#	Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server = w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one	WINS Server on the network. The default is NO.
;   wins proxy = yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy = no 

# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
;  preserve case = no
;  short preserve case = no
# Default case is normally upper case for all DOS files
;  default case = lower
# Be very careful with case sensitivity - it can break things!
;  case sensitive = no

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
# If you want users samba doesn't recognize to be mapped to a guest user
; map to guest = bad user


# Un-comment the following and create the netlogon directory for Domain Logons
; [netlogon]
;   comment = Network Logon Service
;   path = /usr/local/samba/lib/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
;[Profiles]
;    path = /usr/local/samba/profiles
;    browseable = no
;    guest ok = yes


# NOTE: If you have a BSD-style print system there is no need to 
# specifically define each individual printer
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes

# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment = Public Stuff
;   path = /home/samba
;   public = yes
;   writable = yes
;   printable = no
;   write list = @staff

# Other examples. 
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
;   comment = Fred's Printer
;   valid users = fred
;   path = /home/fred
;   printer = freds_printer
;   public = no
;   writable = no
;   printable = yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment = Fred's Service
;   path = /usr/somewhere/private
;   valid users = fred
;   public = no
;   writable = yes
;   printable = no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment = PC Directories
;  path = /usr/local/pc/%m
;  public = no
;  writable = yes

# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
;   path = /usr/somewhere/else/public
;   public = yes
;   only guest = yes
;   writable = yes
;   printable = no

# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
;   comment = Mary's and Fred's stuff
;   path = /usr/somewhere/shared
;   valid users = mary fred
;   public = no
;   writable = yes
;   printable = no
;   create mask = 0765

[hky]
   comment = hky
   path = /home/hky
   public = yes
   browseable = yes
   read only = no
   printable = no
   guest ok = yes

[froupie]
   comment = froupie
   path = /home/froupie
   public = yes
   browseable = yes
   read only = no
   printable = no

# Info
#
# start/stop smb : /etc/rc.d/init.d/smb start/stop

-------------- next part --------------
[2005/05/24 12:01:39, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:01:39, 2] lib/interface.c:add_interface(81)
  added interface ip=192.168.2.190 bcast=192.168.2.255 nmask=255.255.255.0
[2005/05/24 12:01:39, 5] lib/hash.c:hash_table_init(68)
  Hash size = 521.
[2005/05/24 12:01:39, 6] lib/charset.c:codepage_initialise(336)
  codepage_initialise: client code page = 850
[2005/05/24 12:01:39, 5] lib/charset.c:load_client_codepage(194)
  load_client_codepage: loading codepage 850.
  Adding chars 0x85 0xb7 (l->u = True) (u->l = True)
  Adding chars 0xa0 0xb5 (l->u = True) (u->l = True)
  Adding chars 0x83 0xb6 (l->u = True) (u->l = True)
  Adding chars 0xc6 0xc7 (l->u = True) (u->l = True)
  Adding chars 0x84 0x8e (l->u = True) (u->l = True)
  Adding chars 0x86 0x8f (l->u = True) (u->l = True)
  Adding chars 0x91 0x92 (l->u = True) (u->l = True)
  Adding chars 0x87 0x80 (l->u = True) (u->l = True)
  Adding chars 0x8a 0xd4 (l->u = True) (u->l = True)
  Adding chars 0x82 0x90 (l->u = True) (u->l = True)
  Adding chars 0x88 0xd2 (l->u = True) (u->l = True)
  Adding chars 0x89 0xd3 (l->u = True) (u->l = True)
  Adding chars 0x8d 0xde (l->u = True) (u->l = True)
  Adding chars 0xa1 0xd6 (l->u = True) (u->l = True)
  Adding chars 0x8c 0xd7 (l->u = True) (u->l = True)
  Adding chars 0x8b 0xd8 (l->u = True) (u->l = True)
  Adding chars 0xd0 0xd1 (l->u = True) (u->l = True)
  Adding chars 0xa4 0xa5 (l->u = True) (u->l = True)
  Adding chars 0x95 0xe3 (l->u = True) (u->l = True)
  Adding chars 0xa2 0xe0 (l->u = True) (u->l = True)
  Adding chars 0x93 0xe2 (l->u = True) (u->l = True)
  Adding chars 0xe4 0xe5 (l->u = True) (u->l = True)
  Adding chars 0x94 0x99 (l->u = True) (u->l = True)
  Adding chars 0x9b 0x9d (l->u = True) (u->l = True)
  Adding chars 0x97 0xeb (l->u = True) (u->l = True)
  Adding chars 0xa3 0xe9 (l->u = True) (u->l = True)
  Adding chars 0x96 0xea (l->u = True) (u->l = True)
  Adding chars 0x81 0x9a (l->u = True) (u->l = True)
  Adding chars 0xec 0xed (l->u = True) (u->l = True)
  Adding chars 0xe7 0xe8 (l->u = True) (u->l = True)
  Adding chars 0x9c 0x0 (l->u = False) (u->l = False)
[2005/05/24 12:01:39, 10] lib/util_unistr.c:load_dos_unicode_map(736)
  load_dos_unicode_map: 850
[2005/05/24 12:01:39, 5] lib/util_unistr.c:load_unicode_map(597)
  load_unicode_map: loading unicode map for codepage 850.
[2005/05/24 12:01:39, 10] lib/util_unistr.c:load_unix_unicode_map(753)
  load_unix_unicode_map: ISO8859-1 (init_done=0, override=0)
[2005/05/24 12:01:39, 5] lib/util_unistr.c:load_unicode_map(597)
  load_unicode_map: loading unicode map for codepage ISO8859-1.
[2005/05/24 12:01:39, 3] smbd/server.c:main(747)
  loaded services
[2005/05/24 12:01:39, 3] smbd/server.c:main(762)
  Becoming a daemon.
[2005/05/24 12:01:39, 8] lib/util.c:fcntl_lock(1302)
  fcntl_lock 6 13 0 1 1
[2005/05/24 12:01:39, 8] lib/util.c:fcntl_lock(1340)
  fcntl_lock: Lock call successful
[2005/05/24 12:01:39, 5] smbd/connection.c:claim_connection(156)
  claiming  0
[2005/05/24 12:01:39, 3] lib/util_sock.c:open_socket_in(813)
  bind succeeded on port 139
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_KEEPALIVE = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_REUSEADDR = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_BROADCAST = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option TCP_NODELAY = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_LOWDELAY = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_THROUGHPUT = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDBUF = 16384
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVBUF = 87380
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDLOWAT = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVLOWAT = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDTIMEO = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVTIMEO = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_KEEPALIVE = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_REUSEADDR = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_BROADCAST = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option TCP_NODELAY = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_LOWDELAY = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_THROUGHPUT = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDBUF = 16384
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVBUF = 16384
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDLOWAT = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVLOWAT = 1
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDTIMEO = 0
[2005/05/24 12:01:39, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVTIMEO = 0
[2005/05/24 12:01:39, 2] smbd/server.c:open_sockets(215)
  waiting for a connection
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_KEEPALIVE = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_REUSEADDR = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_BROADCAST = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option TCP_NODELAY = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_LOWDELAY = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_THROUGHPUT = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDBUF = 16384
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVBUF = 16384
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDLOWAT = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVLOWAT = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDTIMEO = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVTIMEO = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_KEEPALIVE = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_REUSEADDR = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_BROADCAST = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option TCP_NODELAY = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_LOWDELAY = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option IPTOS_THROUGHPUT = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDBUF = 16384
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVBUF = 16384
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDLOWAT = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVLOWAT = 1
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_SNDTIMEO = 0
[2005/05/24 12:02:23, 5] lib/util_sock.c:print_socket_options(111)
  socket option SO_RCVTIMEO = 0
[2005/05/24 12:02:23, 10] printing/nt_printing.c:update_c_setprinter(369)
  update_c_setprinter: c_setprinter = 0
[2005/05/24 12:02:23, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:02:23, 3] smbd/oplock.c:init_oplocks(1211)
  open_oplock_ipc: opening loopback UDP socket.
[2005/05/24 12:02:23, 3] lib/util_sock.c:open_socket_in(813)
  bind succeeded on port 0
[2005/05/24 12:02:23, 3] smbd/oplock_linux.c:linux_init_kernel_oplocks(298)
  Linux kernel oplocks enabled
[2005/05/24 12:02:23, 3] smbd/oplock.c:init_oplocks(1242)
  open_oplock ipc: pid = 1048, global_oplock_port = 32770
[2005/05/24 12:02:23, 4] lib/time.c:get_serverzone(114)
  Serverzone is -7200
[2005/05/24 12:02:23, 10] lib/util_sock.c:read_smb_length_return_keepalive(559)
  got smb length of 68
[2005/05/24 12:02:23, 10] lib/access.c:check_access(304)
  check_access: allow = , deny = 
[2005/05/24 12:02:23, 6] smbd/process.c:process_smb(876)
  got message type 0x81 of len 0x44
[2005/05/24 12:02:23, 3] smbd/process.c:process_smb(877)
  Transaction 0 of length 72
[2005/05/24 12:02:23, 2] smbd/reply.c:reply_special(92)
  netbios connect: name1=FIONUX           name2=BUDDY          
[2005/05/24 12:02:23, 2] smbd/reply.c:reply_special(111)
  netbios connect: local=fionux remote=buddy
-------------- next part --------------
[2005/05/24 12:01:39, 0] smbd/server.c:main(707)
  smbd version 2.2.5 started.
  Copyright Andrew Tridgell and the Samba Team 1992-2002
[2005/05/24 12:01:39, 1] lib/debug.c:debug_message(258)
  INFO: Debug class all level = 10   (pid 1015 from pid 1015)
  doing parameter security = user
  doing parameter encrypt passwords = no
  doing parameter smb passwd file = /etc/samba/smbpasswd
  doing parameter unix password sync = Yes
  doing parameter passwd program = /usr/bin/passwd %u
  doing parameter passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
  doing parameter pam password change = yes
  doing parameter obey pam restrictions = yes
  doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
  doing parameter dns proxy = no
[2005/05/24 12:01:39, 2] param/loadparm.c:do_section(3042)
  Processing section "[homes]"
  doing parameter comment = Home Directories
  doing parameter browseable = no
  doing parameter writable = yes
  doing parameter valid users = %S
  doing parameter create mode = 0664
  doing parameter directory mode = 0775
[2005/05/24 12:01:39, 2] param/loadparm.c:do_section(3042)
  Processing section "[printers]"
  doing parameter comment = All Printers
  doing parameter path = /var/spool/samba
  doing parameter browseable = no
  doing parameter guest ok = no
  doing parameter writable = no
  doing parameter printable = yes
[2005/05/24 12:01:39, 2] param/loadparm.c:do_section(3042)
  Processing section "[hky]"
  doing parameter comment = hky
  doing parameter path = /home/hky
  doing parameter public = yes
  doing parameter browseable = yes
  doing parameter read only = no
  doing parameter printable = no
  doing parameter guest ok = yes
[2005/05/24 12:01:39, 2] param/loadparm.c:do_section(3042)
  Processing section "[froupie]"
  doing parameter comment = froupie
  doing parameter path = /home/froupie
  doing parameter public = yes
  doing parameter browseable = yes
  doing parameter read only = no
  doing parameter printable = no
[2005/05/24 12:01:39, 4] param/loadparm.c:lp_load(3472)
  pm_process() returned Yes
[2005/05/24 12:01:39, 3] param/loadparm.c:lp_add_ipc(2011)
  adding IPC service IPC$
[2005/05/24 12:01:39, 3] param/loadparm.c:lp_add_ipc(2011)
  adding IPC service ADMIN$
[2005/05/24 12:01:39, 10] param/loadparm.c:set_server_role(3426)
  set_server_role: ROLE_STANDALONE
-------------- next part --------------
[2005/05/24 12:02:23, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:02:23, 5] smbd/connection.c:claim_connection(156)
  claiming  0
[2005/05/24 12:02:23, 5] smbd/reply.c:reply_special(152)
  init msg_type=0x81 msg_flags=0x0
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(518)
  write_socket(12,4)
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(521)
  write_socket(12,4) wrote 4
[2005/05/24 12:02:23, 10] lib/util_sock.c:read_smb_length_return_keepalive(559)
  got smb length of 133
[2005/05/24 12:02:23, 6] smbd/process.c:process_smb(876)
  got message type 0x0 of len 0x85
[2005/05/24 12:02:23, 3] smbd/process.c:process_smb(877)
  Transaction 1 of length 137
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(275)
  size=133
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=51283
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(281)
  smb_tid=0
  smb_pid=65279
  smb_uid=0
  smb_mid=0
  smt_wct=0
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(291)
  smb_bcc=98
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1529)
  [000] 02 50 43 20 4E 45 54 57  4F 52 4B 20 50 52 4F 47  .PC NETW ORK PROG
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [010] 52 41 4D 20 31 2E 30 00  02 4C 41 4E 4D 41 4E 31  RAM 1.0. .LANMAN1
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [020] 2E 30 00 02 57 69 6E 64  6F 77 73 20 66 6F 72 20  .0..Wind ows for 
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [030] 57 6F 72 6B 67 72 6F 75  70 73 20 33 2E 31 61 00  Workgrou ps 3.1a.
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [040] 02 4C 4D 31 2E 32 58 30  30 32 00 02 4C 41 4E 4D  .LM1.2X0 02..LANM
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [050] 41 4E 32 2E 31 00 02 4E  54 20 4C 4D 20 30 2E 31  AN2.1..N T LM 0.1
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [060] 32 00                                             2. 
[2005/05/24 12:02:23, 3] smbd/process.c:switch_message(684)
  switch message SMBnegprot (pid 1048)
[2005/05/24 12:02:23, 3] smbd/sec_ctx.c:set_sec_ctx(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/05/24 12:02:23, 5] smbd/uid.c:change_to_root_user(217)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [PC NETWORK PROGRAM 1.0]
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [LANMAN1.0]
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [Windows for Workgroups 3.1a]
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [LM1.2X002]
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [LANMAN2.1]
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(342)
  Requested protocol [NT LM 0.12]
[2005/05/24 12:02:23, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:02:23, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:02:23, 3] smbd/negprot.c:reply_negprot(426)
  Selected protocol NT LM 0.12
[2005/05/24 12:02:23, 5] smbd/negprot.c:reply_negprot(433)
  negprot index=5
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(275)
  size=81
  smb_com=0x72
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=136
  smb_flg2=1
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(281)
  smb_tid=0
  smb_pid=65279
  smb_uid=0
  smb_mid=0
  smt_wct=17
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[0]=5 (0x5)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[1]=12801 (0x3201)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[2]=256 (0x100)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[3]=65280 (0xFF00)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[4]=255 (0xFF)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[5]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[6]=256 (0x100)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[7]=6144 (0x1800)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[8]=4 (0x4)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[9]=63744 (0xF900)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[10]=3 (0x3)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[11]=32768 (0x8000)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[12]=7393 (0x1CE1)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[13]=18350 (0x47AE)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[14]=50528 (0xC560)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[15]=34817 (0x8801)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[16]=255 (0xFF)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(291)
  smb_bcc=12
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1529)
  [000] 34 54 45 43 2D 56 41 4E  4E 45 53 00              4TEC-VAN NES.
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(518)
  write_socket(12,85)
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(521)
  write_socket(12,85) wrote 85
[2005/05/24 12:02:23, 10] lib/util_sock.c:read_smb_length_return_keepalive(559)
  got smb length of 140
[2005/05/24 12:02:23, 6] smbd/process.c:process_smb(876)
  got message type 0x0 of len 0x8c
[2005/05/24 12:02:23, 3] smbd/process.c:process_smb(877)
  Transaction 2 of length 144
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(275)
  size=140
  smb_com=0x73
  smb_rcls=0
  smb_reh=0
  smb_err=0
  smb_flg=24
  smb_flg2=18439
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(281)
  smb_tid=0
  smb_pid=65279
  smb_uid=0
  smb_mid=64
  smt_wct=13
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[0]=117 (0x75)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[1]=108 (0x6C)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[2]=65535 (0xFFFF)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[3]=50 (0x32)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[4]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[5]=1048 (0x418)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[6]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[7]=1 (0x1)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[8]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[9]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[10]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[11]=212 (0xD4)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(286)
  smb_vwv[12]=0 (0x0)
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(291)
  smb_bcc=47
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1529)
  [000] 00 68 6B 79 00 42 55 44  44 59 00 57 69 6E 64 6F  .hky.BUD DY.Windo
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [010] 77 73 20 32 30 30 30 20  32 31 39 35 00 57 69 6E  ws 2000  2195.Win
[2005/05/24 12:02:23, 10] lib/util.c:dump_data(1537)
  [020] 64 6F 77 73 20 32 30 30  30 20 35 2E 30 00 00     dows 200 0 5.0..
[2005/05/24 12:02:23, 3] smbd/process.c:switch_message(684)
  switch message SMBsesssetupX (pid 1048)
[2005/05/24 12:02:23, 3] smbd/sec_ctx.c:set_sec_ctx(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/05/24 12:02:23, 5] smbd/uid.c:change_to_root_user(217)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2005/05/24 12:02:23, 3] smbd/reply.c:reply_sesssetup_and_X(858)
  Domain=[BUDDY]  NativeOS=[Windows 2000 2195] NativeLanMan=[Windows 2000 5.0]
[2005/05/24 12:02:23, 3] smbd/reply.c:reply_sesssetup_and_X(868)
  sesssetupX:name=[hky]
[2005/05/24 12:02:23, 6] param/loadparm.c:lp_file_list_changed(2285)
  lp_file_list_changed()
  file /etc/samba/smb.conf -> /etc/samba/smb.conf  last mod_time: Tue May 24 08:51:40 2005
  
[2005/05/24 12:02:23, 2] smbd/reply.c:reply_sesssetup_and_X(982)
  Defaulting to Lanman password for hky
[2005/05/24 12:02:23, 4] smbd/password.c:password_ok(593)
  Null passwords not allowed.
[2005/05/24 12:02:23, 1] smbd/reply.c:reply_sesssetup_and_X(998)
  Rejecting user 'hky': authentication failed
[2005/05/24 12:02:23, 3] smbd/error.c:error_packet(91)
  error string = No such file or directory
[2005/05/24 12:02:23, 3] smbd/error.c:error_packet(110)
  error packet at smbd/reply.c(1000) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(275)
  size=35
  smb_com=0x73
  smb_rcls=109
  smb_reh=0
  smb_err=49152
  smb_flg=136
  smb_flg2=16385
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(281)
  smb_tid=0
  smb_pid=65279
  smb_uid=0
  smb_mid=64
  smt_wct=0
[2005/05/24 12:02:23, 5] lib/util.c:show_msg(291)
  smb_bcc=0
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(518)
  write_socket(12,39)
[2005/05/24 12:02:23, 6] lib/util_sock.c:write_socket(521)
  write_socket(12,39) wrote 39
[2005/05/24 12:02:34, 10] lib/util_sock.c:read_data(430)
  read_data: read of 4 returned 0. Error = Success
[2005/05/24 12:02:34, 10] lib/util_sock.c:receive_smb(609)
  receive_smb: length < 0!
[2005/05/24 12:02:34, 3] smbd/process.c:timeout_processing(1102)
  end of file from client
[2005/05/24 12:02:34, 3] smbd/sec_ctx.c:set_sec_ctx(314)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2005/05/24 12:02:34, 5] smbd/uid.c:change_to_root_user(217)
  change_to_root_user: now uid=(0,0) gid=(0,0)
[2005/05/24 12:02:34, 2] smbd/server.c:exit_server(461)
  Closing connections
[2005/05/24 12:02:34, 3] smbd/connection.c:yield_connection(48)
  Yielding connection to 
[2005/05/24 12:02:34, 5] smbd/oplock.c:receive_local_message(108)
  receive_local_message: doing select with timeout of 1 ms
[2005/05/24 12:02:34, 3] smbd/server.c:exit_server(495)
  Server exit (normal exit)


More information about the samba mailing list