[Samba] No access to machine shares in Samba Domain
Paulo Bernardo Lindoso (Yahoo)
lindoso_paulo at yahoo.com.br
Sat Oct 18 21:47:11 GMT 2003
Hello All,
I have a Linux box running RH9 and Samba 2.2.7 as domain controller.
Last week, we bought a new (better!) box and migrated our Samba
installation to the new box and apparently everything was working fine,
until we noticed that shares created in the Windows machines are not
accessible by anyone in the domain.
I've read all the docs and everything seems ok, but I can't get this to
work.
I noticed that "smbclient -L //winmachine -U someuser" fails with
"NT_STATUS_LOGON_FAILURE" but when trying the same in the Samba Server,
it works.
I'm very lost here... Any help would be really appreciated...
TIA,
Paulo.
------------ SMB.CONF (relevant parts) ---------------------------
[global]
load printers = yes
printing = cups
printcap name = cups
disable spoolss = yes
# printing = bsd
# printcap name = /etc/printcap
# load printers = yes
guest account = nobody
# invalid users = root
workgroup = MYDOMAIN
netbios name = yang
# hosts allow = 127.0.0.1 10.1.1.0
encrypt passwords = true
domain master = yes
domain logons = yes
debug level = 8
local master = yes
preferred master = yes
os level = 64
# logon path = \\%N\profiles\%u
logon path =
# For nt/2000 clients
# logon drive =
# for 9x/me clients
# logon home = H:
logon script = logon.bat
add user script = /usr/sbin/useradd -d /dev/null -g 1001 -s
/bin/false -M %u
keep alive = 30
wins support = yes
# wins server = 10.0.0.2
unix password sync = yes
unix extensions = yes
security = user
server string = %h server (Samba %v)
# socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096
SO_RCVBUF=4096
socket options = TCP_NODELAY
preserve case = yes
short preserve case = yes
create mode = 0777
directory mode = 0777
interfaces = 192.168.0.69
# remote announce = 10.0.0.255/
# unix character set = ISO8859-1
character set = ISO8859-1
# unix charset = ISO8859-1
client code page = 850
# getwd cache = no
# level2 oplocks = no
; necessary share for domain controller
[netlogon]
path = /home/netlogon
writeable = no
write list = ntadmin
----------------- END SMB.CONF -------------------------
--------------------SMBCLIENT----------------
[root]:> smbclient -L //u-03 -U fernanda -d4
(....)
pm_process() returned Yes
added interface ip=192.168.0.69 bcast=192.168.0.255 nmask=255.255.255.0
Client started (version 2.2.7a).
resolve_lmhosts: Attempting lmhosts lookup for name u-03<0x20>
startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No
such file or directory
resolve_hosts: Attempting host lookup for name u-03<0x20>
resolve_wins: Attempting wins lookup for name u-03<0x20>
resolve_wins: WINS server == <127.0.0.1>
bind succeeded on port 0
nmb packet from 127.0.0.1(137) header: id=10293 opcode=Query(0) response=Yes
header: flags: bcast=No rec_avail=Yes rec_des=Yes trunc=No auth=Yes
header: rcode=3 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=U-03<20> rr_type=32 rr_class=1 ttl=0
Negative name query response, rcode 0x03: The name requested does not exist.
name_resolve_bcast: Attempting broadcast lookup for name u-03<0x20>
bind succeeded on port 0
nmb packet from 192.168.0.45(137) header: id=21842 opcode=Query(0)
response=Yes
header: flags: bcast=No rec_avail=No rec_des=Yes trunc=No auth=Yes
header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
answers: nmb_name=U-03<20> rr_type=32 rr_class=1 ttl=300000
answers 0 char @....- hex 4000C0A8002D
Got a positive name query response from 192.168.0.45 ( 192.168.0.45 )
Connecting to 192.168.0.45 at port 139
session request ok
Password:
session setup failed: NT_STATUS_LOGON_FAILURE
-------------END SMBCLIENT---------------------------------
More information about the samba
mailing list