Joey Garcia
2000-Oct-18 09:15 UTC
Samba 2.0.7 homes share problem with NT 4.0: Network name cannot be found
Greetings! This here question is in need of a Samba guru. I'll try to
list out all the information that you'll might need.
Okay, I have a FreeBSD 4.1 box with Samba 2.0.7 installed from the ports
collection that is having some troubles with NT 4.0 (with service pack
6).
Here's the situation. I'd like to have the FreeBSD box as a simple File
Server. As of current I only have homes share and a tmp share. The tmp
share works fine when accessing from FreeBSD, but the homes share (which
samba maps to the user name/directory) gives me some error messages.
So basically, when I log into the NT box as administrator and I open the
network neighborhood and open the FreeBSD workstation icon, I get
presented with a list of shares on the FreeBSD/Samba server. I can open
the tmp share, but when I try to open the administrator share I get this
error message: "\\FreeBSD\administrator is not accessible.
The network name cannot be found."
I have read the diagnosing file on the samba site. I found something
weird when issuing the "net view \\freebsd" command on the NT 4
box. Their is a missing field next to the the administrator share.
Anyways, I'm attatching smb.conf file and some output from smbclient and
'net view \\freebsd' commands and my log files.
I'm really stumped and would really like to get this working. I'd like
thos priove to my boss that FreeBSD and Samba has it's place in our
network. Any help would be greatly appreciated. Thanks!
Joey
PS It seems to work okay with Win98 clients. Go figure! (files listed
below)
# Samba config File (/usrlocal/etc/smb.conf)
# Global parameters
[global]
workgroup = MIS
netbios name = FREEBSD
server string = Samba Server
interfaces = xl0
encrypt passwords = Yes
log file = /var/log/log.%m
max log size = 50
os level = 33
local master = No
dns proxy = No
[homes]
comment = Home Directories
writeable = Yes
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
[tmp]
comment = Temporary file space
path = /tmp
writeable = Yes
guest ok = Yes
# From the FreeBSD/Samba box logged in as administrator
$ smbclient -L freebsd
added interface ip=10.0.0.5 bcast=10.255.255.255 nmask=255.0.0.0
Got a positive name query response from 10.0.0.5 ( 10.0.0.5 )
Password:
Domain=[MIS] OS=[Unix] Server=[Samba 2.0.7]
Sharename Type Comment
--------- ---- -------
tmp Disk Temporary file space
IPC$ IPC IPC Service (Samba Server)
lp Printer HP Laserjet 2100
ibm Printer IBM 6400
cc Printer Canon IR330E
administrator Disk Home Directories
Server Comment
--------- -------
FREEBSD Samba Server
STEVE
Workgroup Master
--------- -------
MIS STEVE
# From the NT 4 box logged in as Administrator
C:>net view \\freebsd
Shared resources at \\freebsd
Samba Server
Share name Type Used as Comment
------------------------------------------------------------------------
-------
administrator
Disk Home Directories
cc Print Canon IR330E
ibm Print IBM 6400
lp Print HP Laserjet 2100
tmp Disk (UNC) Temporary file space
The command completed successfully.
# From the NT 4 box - trying to access administrator share via Network
Neighborhood
# (error message given)
\\FreeBSD\administrator is not accessible.
The network name cannot be found.
Note: accessing the tmp share works fine. I think their is something up
with the homes share
# log.smb
[2000/10/16 18:20:04, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
[2000/10/16 18:20:04, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option TCP_NODELAY (Error Bad file descriptor)
[2000/10/17 14:05:01, 1] smbd/server.c:main(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2000/10/17 14:05:01, 1] smbd/files.c:file_init(216)
file_init: Information only: requested 10000 open files, 1054 are
available.
[2000/10/17 14:07:19, 1] smbd/service.c:make_connection(550)
freebsd (10.0.0.5) connect to service tmp as user bear (uid=1001,
gid=0) (pid 16200)
[2000/10/17 14:08:10, 1] smbd/service.c:close_cnum(583)
freebsd (10.0.0.5) closed connection to service tmp
[2000/10/17 14:23:55, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
[2000/10/17 14:23:55, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option TCP_NODELAY (Error Bad file descriptor)
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:23:55, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:24:05, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:05, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:05, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:24:09, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:09, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:09, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:24:14, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:14, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:14, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:24:20, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:24:20, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:24:20, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'bear': authentication failed
[2000/10/17 14:24:44, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:44, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:44, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:24:44, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:44, 1] smbd/password.c:pass_check_smb(506)
Account for user 'administrator' was disabled.
[2000/10/17 14:24:44, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:38:59, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:38:59, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:38:59, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'bear': authentication failed
[2000/10/17 14:39:23, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:39:23, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:39:23, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'bear': authentication failed
[2000/10/17 14:39:27, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:39:27, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:39:27, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'bear': authentication failed
[2000/10/17 14:40:24, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:40:24, 1] smbd/password.c:pass_check_smb(506)
Account for user 'bear' was disabled.
[2000/10/17 14:40:24, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'bear': authentication failed
[2000/10/17 14:40:39, 0] smbd/chgpasswd.c:check_oem_password(644)
check_lanman_password: account bear disabled.
[2000/10/17 14:41:42, 1] smbd/service.c:make_connection(550)
joey (10.0.0.12) connect to service tmp as user administrator
(uid=1002, gid=1002) (pid 16299)
[2000/10/17 14:42:14, 0] smbd/nttrans.c:call_nt_transact_ioctl(2516)
call_nt_transact_ioctl: Currently not implemented.
[2000/10/17 14:44:06, 1] smbd/service.c:close_cnum(583)
joey (10.0.0.12) closed connection to service tmp
[2000/10/17 14:53:00, 1] smbd/reply.c:reply_sesssetup_and_X(925)
Rejecting user 'administrator': authentication failed
[2000/10/17 14:53:25, 1] smbd/service.c:make_connection(550)
freebsd (10.0.0.5) connect to service administrator as user
administrator (uid=1002, gid=1002) (pid 16348)
[2000/10/17 14:54:07, 1] smbd/service.c:close_cnum(583)
freebsd (10.0.0.5) closed connection to service administrator
[2000/10/17 15:02:43, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option SO_KEEPALIVE (Error Bad file descriptor)
[2000/10/17 15:02:43, 0] lib/util_sock.c:set_socket_options(154)
Failed to set socket option TCP_NODELAY (Error Bad file descriptor)
[2000/10/17 15:07:57, 1] smbd/server.c:main(641)
smbd version 2.0.7 started.
Copyright Andrew Tridgell 1992-1998
[2000/10/17 15:07:57, 1] smbd/files.c:file_init(216)
file_init: Information only: requested 10000 open files, 1054 are
available.
Mike Fedyk
2000-Oct-18 20:01 UTC
Samba 2.0.7 homes share problem with NT 4.0: Network name cannot be found
Joey Garcia wrote:> > Greetings! This here question is in need of a Samba guru. I'll try to > list out all the information that you'll might need. > > Okay, I have a FreeBSD 4.1 box with Samba 2.0.7 installed from the ports > collection that is having some troubles with NT 4.0 (with service pack > 6). > > Here's the situation. I'd like to have the FreeBSD box as a simple File > Server. As of current I only have homes share and a tmp share. The tmp > share works fine when accessing from FreeBSD, but the homes share (which > samba maps to the user name/directory) gives me some error messages. > > So basically, when I log into the NT box as administrator and I open the > network neighborhood and open the FreeBSD workstation icon, I get > presented with a list of shares on the FreeBSD/Samba server. I can open > the tmp share, but when I try to open the administrator share I get this > error message: "\\FreeBSD\administrator is not accessible.Here's the problem. You can't have shares longer than 12 chars. This is true for NT server too. administrator 1234567890123 It is 13 chars, one too many. Rename your user and setup a user map. I chose ntadmin instead of administrator as the unix user. -- Mike Fedyk "They that can give up essential liberty Information Systems to obtain a little temporary safety Match Mail Productions Inc. deserve neither liberty nor safety." mfedyk@matchmail.com Ben Franklin
Mike Fedyk
2000-Oct-18 20:26 UTC
Samba 2.0.7 homes share problem with NT 4.0: Network name cannot be found
Joey Garcia wrote:> > Thank you! I wasn't aware of that 12 character thing. Did I over look > that in the docs? Also, I'm not familiar with creating a user map. > Where in the documentation should I look for help on that subject? In > case it's not in the documentation, care to explain how I would go about > creating a user map? > > TIA, > > Joey >I don't know if the 12 char thing is documented, I just found it with my own troubleshooting. The user map is in the docs for smb.conf Just search for "user map" without quotes in the man page. (hint, press "/" first...) basically the usermap is a file that translates windows users to unix users. You'll need this for users with spaces in their names too. unixuser=winuser the man page will tell you more. -- Mike Fedyk "They that can give up essential liberty Information Systems to obtain a little temporary safety Match Mail Productions Inc. deserve neither liberty nor safety." mfedyk@matchmail.com Ben Franklin