[Samba] cannot access samba server

Phil af.gourmet at videotron.ca
Fri Sep 7 23:43:11 GMT 2007


I am rather at a loss as things seem to change by themselves on this 
Vista machine.
Here's the setup: Vista client, FreeBSD 6.2 server with samba 3.0.25; 
also a FreeBSD 4.11 machine (server) with samba 2.2.12
Vista connected to samba 3 with password  and the machines were present 
on the network. Then the machines would not show up on Vista at all; 
they could be pinged and they could be mounted on Vista.
Then I started up the older machine (4.11 FBSD) and the network shows up 
on Vista. But I cannot log in to samba3.
 From Vista, net view \\6.2server returns - System error 5 has occurred. 
Access is denied.
on 6.2server, the log shows: lib/util_sock.c:read_data(534)
read_data: read failure for 4 bytes to client 192.168.0.50. Error = 
Connection reset by peer
Also this in the log: smbd/service.c:make_connection_snum (928)
Can't become connected user!

If I shut down the 4.11server, Vista does not see the network. I do not 
know if there could be a problem with using the 6.2 and the 4.11 servers 
as wins servers - could there be a conflict? do I even need a wins server?

I am using passwords and security=user on 6.2server. On 4.11server it is 
security=share and I have no problems with that machine.

I can mount the Vista directories on the 6.2server and the password 
works in the direction 6.2server to Vista.
I did cat rc.conf > /mnt/tmp/rc.conf.txt and copied the file as below:

hostname="Biggie"
defaultrouter="192.168.0.1"
ifconfig_vr0="inet 192.168.0.80  netmask 255.255.255.0"
usbd_enable="YES"
lpd_enable="YES"
moused_port="/dev/psm0"
moused_type="auto"
moused_enable="YES"
ntpdate_flags="0.us.pool.ntp.org"
ntpdate_enable="YES"
ntpd_enable="YES"
snmpd_enable="YES"
rpcbind_enable="YES"
nfs_server_enable="YES"
nfs_server_flags="-u -t -n 4"
mountd_flags="-r"
amd_enable="YES"
inetd_enable="YES"
sshd_enable="YES"
font8x16="iso15-8x16"    #font 8x16 from /usr/share/syscons/fonts/* (or NO).
font8x14="iso15-8x14"    #font 8x14 from /usr/share/syscons/fonts/* (or NO).
font8x8="iso15-8x8"    #font 8x8 from /usr/share/syscons/fonts/* (or NO).
vidcontrol VGA_80x60 cyan
webmin_enable="YES"
# added by xorg-libraries port
local_startup="/usr/local/etc/rc.d"
devfs_system_ruleset="system"
samba_enable="YES"
cupsd_enable="YES"
postgresql_enable="YES"
apache22_enable="YES"
named_program="/usr/sbin/named"

and here is smb.conf (some of it has been commented out and there is 
some stuff that probably isn't even needed - but nothing seems to affect 
the login - user and password do not work):

[global]
    workgroup = KITCHEN
    server string = Samba Server
    security = user
    syslog = 2
    log file = /var/log/samba/log.%m
    max log size = 50
#    name resolve order = host bcast wins
    socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
    printcap name = cups
#    add user script = /usr/sbin/useradd %u
    #delete user script = /usr/sbin/userdel %u
    #add group script = /usr/sbin/groupadd %g
    #delete group script = /usr/sbin/groupdel %g
    #delete user from group script = /usr/sbin/deluser %u %g
    os level = 99
    dns proxy = No
#    ldap ssl = no
    comment = samba ver. %v
    invalid users = mail, daemon, adt, @wheel
    valid users = root,Phil-VISTA/Pippo, Pippo, administrators
    hosts allow = 127.0.0.1 192.168.0.0/24
    hosts deny = 0.0.0.0/0
    printing = cups
    print command =
    lpq command = %p
    lprm command =

[homes]
    comment = Home Directories
    read only = No
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    browseable = No

[tmp]
    comment = Temporary file space
    path = /tmp
    read only = No
    guest ok = Yes

[Pippo]
    comment = Biggie Stuff
    path = /
    read only = No
    create mask = 0765

I can post whatever may be necessary to clear this up. Thanks in advance.
I would really appreciate some help. I have checked the Web and have 
found much on installation but none of it seems to work for me. Most 
likely I am not seeing something that must be obvious to the experienced 
mind.
Philip


More information about the samba mailing list