hi,
i upgraded from 2.0.7 to 2.2 last night hoping to lose these getpeername
errors that show up in my log.smbd.0.0.0.0 file (and now also
/var/log/messages YIKES!).
grepping on the time in my samba log files, i come up with at least three
different cases for when this error occurs: a denied connection because
the ip is not allowed; a bad user map (when 2.2 upgrade didn't restore
smbuser); and a successful connection. the first kind happens ALOT, though
i don't know why? perhaps the election process or some other such
windows magic?
i also include my smb.conf (which i did restore with path corrections),
perhaps with your experience you'll see something right away that escapes
me.
how can i get rid of these getpeername errors?
thanks!!
elena
[2001/05/01 02:08:25, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 02:08:25, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 02:08:25, 0] lib/access.c:check_access(324)
Denied connection from (129.24.181.51)
[2001/05/01 02:08:25, 1] smbd/process.c:process_smb(824)
Connection denied from 129.24.181.51
-----------
[2001/05/01 08:09:48, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 08:09:48, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 08:09:48, 1] smbd/password.c:pass_check_smb(526)
Couldn't find user 'pboyd' in UNIX password database.
[2001/05/01 08:09:48, 1] smbd/reply.c:reply_sesssetup_and_X(975)
Rejecting user 'pboyd': authentication failed
----------
[2001/05/01 07:32:17, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 07:32:17, 0] lib/util_sock.c:get_socket_addr(1084)
getpeername failed. Error was Bad file descriptor
[2001/05/01 07:32:17, 1] smbd/service.c:make_connection(638)
conf2 (129.24.176.41) connect to service conf as user slullie (uid=526,
gid=2\
40) (pid 30230)
/etc/samba/smb.conf:
# Samba config file created using SWAT
# from localhost.localdomain (127.0.0.1)
# Date: 2000/10/23 14:00:49
# Global parameters
[global]
workgroup = bsvcs-grp
netbios name = WhateverItTakes
server string = UNM Business Services
encrypt passwords = Yes
update encrypted = Yes
unix password sync = Yes
passwd program = /usr/bin/passwd
username map = /etc/samba/smbusers
log file = /var/log/samba/log.%m.%I
log level = 1
max log size = 15
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
domain logons = Yes
preferred master = No
domain master = No
dns proxy = No
name resolve order = lmhosts hosts bcast
invalid users = root bin daemon adm sync shutdown \
halt mail news uucp operator gopher \
nobody games ftp lp xfs named gdm \
piranha postgres pvm squid default \
autobot
hosts allow = 129.24.176. 127.0.0.1 EXCEPT 129.24.180.
129.24.178. 129\
.24.177. 129.24.179. 129.24.181. 129.24.182 129.24.183
directory mask = 0770
create mask = 0770
force create mode = 0770
force directory mode = 0770
[homes]
comment = Home Directories
read only = No
browseable = No
directory mask = 0700
create mask = 0700
force create mode = 0700
force directory mode = 0700
[support]
path = /home/support
comment = Tech Support
writeable = yes
valid users = @support
force group = support
[business]
path = /home/business
comment = Business Services
writeable = yes
valid users = @business @support
force group = business
.
.
.
[root@wit /etc]# testparm
Load smb config files from /etc/samba/smb.conf
INFO: Debug class all level = 1 (pid 30978 from pid 30978)
Loaded services file OK.