Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help!!!! Unable to get Win2k and Samba talking 1

Status
Not open for further replies.

DCCoolBreeze

Programmer
Jul 25, 2001
208
0
0
US
I have been working for a while on getting my Win2K systems to talk to Samba...with no luck. Network Neighborhood (NN) can see the Samba host but when I double click on the icon, I get
\\SambaShare is not accessible
The network path was not found

My home network consists of a Win2k DC. I have successfully joined my Samba server with the DC. I can access accounts via smbclient using the netbios name or the IP. I have attempted to connect to the server via the RUN command using \\SambaNetBiosName and \\IP without success. They give the same errors. I have defined the samba server in both Hosts and lmhosts. I am including my smb.conf file for your review

[global]
workgroup = Delaware
security = domain
password server = DELAWAREDC
encrypt passwords = yes
smb passwd file = /usr/local/etc/private/smbpasswd
unix password sync = yes

[homes]
guest ok = no
read only = no

[Public]
comment = Public Share
path = /usr/local/samba/public
browseable = yes
public = yes
writable = yes
printable = no

Nothing fancy but I wanted to do the minimum to get it working

smbstatus shows:

[root@delawaredh-lx1 samba]# smbstatus

Samba version 2.2.1a
Service uid gid pid machine
----------------------------------------------

No locked files


smbclient requesting information from the DC

[root@delawaredh-lx1 samba]# smbclient -L delawaredc -N
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Anonymous login successful
Domain=[DELAWARE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
Error returning browse list: ERRDOS - ERRnoaccess (Access denied.)

Server Comment
--------- -------
DELAWARD-2K-NB
DELAWAREDC
DELAWAREDH-2K-1
DELAWAREDH-2K-2
DELAWAREDH-LX1 Samba 2.2.1a
DELAWAREDH-XP Main Computer

Workgroup Master
--------- -------
DELAWARE DELAWAREDC

[root@delawaredh-lx1 samba]# smbclient -L delawaredh-lx1 -U samba01
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Password:
Domain=[DELAWARE] OS=[Unix] Server=[Samba 2.2.1a]

Sharename Type Comment
--------- ---- -------
homes Disk
Public Disk Public Share
IPC$ IPC IPC Service (Samba 2.2.1a)
ADMIN$ Disk IPC Service (Samba 2.2.1a)
samba01 Disk Home directory of samba01

Server Comment
--------- -------
DELAWAREDH-LX1 Samba 2.2.1a

Workgroup Master
--------- -------
DELAWARE DELAWAREDH-LX1

[root@delawaredh-lx1 samba]# nmblookup -M delaware
querying delaware on 10.255.255.255
10.10.1.1 delaware<1d>

The Win2k Servers are setup correctly for encrypted passwords

Help!!!!
 
Hi,

You have enable the encrypted password value changed to 1 in Win2k. Then that work fine!

To do that :

Start-> Run -> regedit -> and search for enableplaintextpassword and change the value to 1.

Restart your comp, let me know if it's works!

Sivakumar Kandaraj
web system programmer
Melbourne
 
Thanks. I will try that today and let you know the results
 
did not work...any other ideas or what other data can I send you
 
Are you running Active Directory on your Win2K machine?

Gary
gwinn7
 
OK. I want to get this to work so I have modified samba to not use the domain controller as the authentication. I want to make it work with the minimum conf. file so here it goes:

smb.conf:

[global]

workgroup = DELAWARE # This is the Win2K Domain
server string = Samba Server
log file = /var/log/samba/%m.log
max log size = 0
security = user
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
remote announce = 10.0.0.255
dns proxy = no

#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = yes
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775
map to guest = bad user

[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
browseable = yes

[public]
path = /usr/public
public = yes
only guest = yes
writable = yes
printable = no
browseable = yes

[root@delawaredh-lx1 samba]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section &quot;[homes]&quot;
Global parameter map to guest found in service section!
Processing section &quot;[tmp]&quot;
Processing section &quot;[public]&quot;
Loaded services file OK.
Press enter to see a dump of your service definitions

[root@delawaredh-lx1 samba]# testparm -L delawaredc
Load smb config files from /etc/samba/smb.conf
Processing section &quot;[homes]&quot;
Global parameter map to guest found in service section!
Processing section &quot;[tmp]&quot;
Processing section &quot;[public]&quot;
Loaded services file OK.
Press enter to see a dump of your service definitions

[root@delawaredh-lx1 samba]# /etc/init.d/smb start
Starting SMB services: [ OK ]
Starting NMB services: [ OK ]
[root@delawaredh-lx1 samba]# ps -e | grep mb
4026 ? 00:00:00 smbd
4031 ? 00:00:00 nmbd

[root@delawaredh-lx1 samba]# smbclient -L delawaredc -N
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Anonymous login successful
Domain=[DELAWARE] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
Error returning browse list: ERRDOS - ERRnoaccess (Access denied.)

Server Comment
--------- -------
DELAWARD-2K-NB
DELAWAREDC
DELAWAREDH-2K-1
DELAWAREDH-2K-2
DELAWAREDH-LX1 Samba Server
DELAWAREDH-XP Main Computer

Workgroup Master
--------- -------
DELAWARE DELAWAREDH-LX1

[root@delawaredh-lx1 samba]# smbclient -L delawaredh-lx1 -N
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Anonymous login successful
Domain=[DELAWARE # THIS IS THE WIN2K DOMAIN] OS=[Unix] Server=[Samba 2.2.1a]

Sharename Type Comment
--------- ---- -------
homes Disk Home Directories
tmp Disk Temporary file space
public Disk
IPC$ IPC IPC Service (Samba Server)
ADMIN$ Disk IPC Service (Samba Server)

Server Comment
--------- -------
DELAWAREDH-LX1 Samba Server

Workgroup Master
--------- -------
DELAWARE # THI

[root@delawaredh-lx1 samba]# smbclient -L delawaredh-lx1 -U root
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Password:
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)

[root@delawaredh-lx1 samba]# smbclient -L delawaredh-lx1 -U root
added interface ip=10.0.0.210 bcast=10.255.255.255 nmask=255.0.0.0
Password:
session setup failed: ERRSRV - ERRbadpw (Bad password - name/password pair in a Tree Connect or Session Setup are invalid.)


Windows results

C:\>ping 10.0.0.210

Pinging 10.0.0.210 with 32 bytes of data:

Reply from 10.0.0.210: bytes=32 time<10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255

Ping statistics for 10.0.0.210:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

C:\>ping delawaredh-lx1

Pinging delawaredh-lx1 [10.0.0.210] with 32 bytes of data:

Reply from 10.0.0.210: bytes=32 time=10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255
Reply from 10.0.0.210: bytes=32 time<10ms TTL=255

Ping statistics for 10.0.0.210:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 10ms, Average = 2ms

C:\>net view delawaredh-lx1
System error 53 has occurred.

The network path was not found.


C:\>net use x: \\delawaredh-lx1\tmp
System error 53 has occurred.

The network path was not found.

So why can I not talk with the Linux server????
 
I had something simular happen to me with Win98ME and Samba.

Just a thought.

You did mention hosts and lmhosts. Is the host name of the Win2k box in the hosts file on the Linux Server?

 
Ok, this is probably a dumb question but...have you setup a user in samba yet?

smbpasswd -a <name> -I think this is how it's done.
 
I had a similar problem once, and it ended up being nmb on the Linux box was not working properly. Go to the Windows box and type

nbtstat -a LINUX_MACHINE

where LINUX_MACHINE is the name of the Linux Box as defined on the Windows 2000 machine. See if it returns the proper answer. Also, can you ping from the Linux server to the Windows machine by name?

To add a user, in RedHat anyway, you need to run the following command as root:

/usr/bin/smbadduser LINUX_ID:NT_ID

where LINUX_ID is the Linux login name of the user and NT_ID is the Windows login name of the same user. Other flavors (such as Caldera OpenLinux) differ slightly in the syntax, but if you type in /usr/bin/smbadduser without any names after it you will get an error telling you the proper syntax to use it.

Hope this helps,

Rev. Davidson

 
ok moones posted here since april but i was just configuring the same thing and got it to work with Active directory, i will past my conf below short view and long view , and dont forget to run

smbpasswd -a test

test is the unix useraccount i have, look for it in the smb.conf below

# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/09/02 23:24:12

# Global parameters
[global]
workgroup = HUMIDOR
netbios name = LINUXCPQ
server string = Samba Server
security = DOMAIN
encrypt passwords = Yes
update encrypted = Yes
password server = app01
log file = /var/log/samba/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
preferred master = False
domain master = False
dns proxy = No
wins server = 192.168.0.101
valid users = test administrator
write list = test
read only = No

[homes]
comment = Home Directories
browseable = No

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

[webcam]
comment = Webcam
path = /var/ guest ok = Yes



Full VIEW from SWAT


# Samba config file created using SWAT
# from 0.0.0.0 (0.0.0.0)
# Date: 2002/09/02 23:21:26

# Global parameters
[global]
coding system =
client code page = 850
code page directory = /etc/codepages
workgroup = HUMIDOR
netbios name = LINUXCPQ
netbios aliases =
netbios scope =
server string = Samba Server
interfaces =
bind interfaces only = No
security = DOMAIN
encrypt passwords = Yes
update encrypted = Yes
allow trusted domains = Yes
hosts equiv =
min passwd length = 5
map to guest = Never
null passwords = No
obey pam restrictions = No
password server = app01
smb passwd file = /etc/samba/smbpasswd
root directory =
pam password change = No
passwd program = /usr/bin/passwd
passwd chat = *new*password* %n\n *new*password* %n\n *changed*
passwd chat debug = No
username map =
password level = 0
username level = 0
unix password sync = No
restrict anonymous = No
lanman auth = Yes
use rhosts = No
admin log = No
log level = 0
syslog = 1
syslog only = No
log file = /var/log/samba/log.%m
max log size = 50
timestamp logs = Yes
debug hires timestamp = No
debug pid = No
debug uid = No
protocol = NT1
large readwrite = No
max protocol = NT1
min protocol = CORE
read bmpx = No
read raw = Yes
write raw = Yes
nt smb support = Yes
nt pipe support = Yes
nt status support = Yes
announce version = 4.5
announce as = NT
max mux = 50
max xmit = 65535
name resolve order = lmhosts host wins bcast
max packet = 65535
max ttl = 259200
max wins ttl = 518400
min wins ttl = 21600
time server = No
unix extensions = No
change notify timeout = 60
deadtime = 0
getwd cache = Yes
keepalive = 300
lpq cache time = 10
max smbd processes = 0
max disk size = 0
max open files = 10000
read size = 16384
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
stat cache size = 50
use mmap = Yes
total print jobs = 0
load printers = Yes
printcap name = /etc/printcap
disable spoolss = No
enumports command =
addprinter command =
deleteprinter command =
show add printer wizard = Yes
os2 driver map =
strip dot = No
mangling method = hash
character set =
mangled stack = 50
stat cache = Yes
domain admin group =
domain guest group =
machine password timeout = 604800
add user script =
delete user script =
logon script =
logon path = \\%N\%U\profile
logon drive =
logon home = \\%N\%U
domain logons = No
os level = 20
lm announce = Auto
lm interval = 60
preferred master = False
local master = Yes
domain master = False
browse list = Yes
enhanced browsing = Yes
dns proxy = No
wins proxy = No
wins server = 192.168.0.101
wins support = No
wins hook =
kernel oplocks = Yes
lock spin count = 3
lock spin time = 10
oplock break wait time = 0
add share command =
change share command =
delete share command =
config file =
preload =
lock dir = /var/cache/samba
pid directory = /var/run/samba
utmp directory =
wtmp directory =
utmp = No
default service =
message command =
dfree command =
valid chars =
remote announce =
remote browse sync =
socket address = 0.0.0.0
homedir map =
time offset = 0
NIS homedir = No
source environment =
panic action =
hide local users = No
host msdfs = No
winbind uid =
winbind gid =
template homedir = /home/%D/%U
template shell = /bin/false
winbind separator = winbind cache time = 15
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = No
comment =
path =
alternate permissions = No
username =
guest account = nobody
invalid users =
valid users = test administrator
admin users =
read list =
write list = test
printer admin =
force user =
force group =
read only = No
create mask = 0744
force create mode = 00
security mask = 0777
force security mode = 00
directory mask = 0755
force directory mode = 00
directory security mask = 0777
force directory security mode = 00
force unknown acl user = 00
inherit permissions = No
inherit acls = No
guest only = No
guest ok = No
only user = No
hosts allow =
hosts deny =
status = Yes
nt acl support = Yes
block size = 1024
max connections = 0
min print space = 0
strict allocate = No
strict sync = No
sync always = No
write cache size = 0
max print jobs = 1000
printable = No
postscript = No
printing = bsd
print command = lpr -r -P%p %s
lpq command = lpq -P%p
lprm command = lprm -P%p %j
lppause command =
lpresume command =
queuepause command =
queueresume command =
printer name =
use client driver = No
default devmode = No
printer driver =
printer driver file = /etc/samba/printers.def
printer driver location =
default case = lower
case sensitive = No
preserve case = Yes
short preserve case = Yes
mangle case = No
mangling char = ~
hide dot files = Yes
hide unreadable = No
delete veto files = No
veto files =
hide files =
veto oplock files =
map system = No
map hidden = No
map archive = Yes
mangled names = Yes
mangled map =
browseable = Yes
blocking locks = Yes
csc policy = manual
fake oplocks = No
locking = Yes
oplocks = Yes
level2 oplocks = Yes
oplock contention limit = 2
posix locking = Yes
strict locking = No
share modes = Yes
copy =
include =
exec =
preexec close = No
postexec =
root preexec =
root preexec close = No
root postexec =
available = Yes
volume =
fstype = NTFS
set directory = No
wide links = Yes
follow symlinks = Yes
dont descend =
magic script =
magic output =
delete readonly = No
dos filemode = No
dos filetimes = No
dos filetime resolution = No
fake directory create times = No
vfs object =
vfs options =
msdfs root = No

[homes]
comment = Home Directories
browseable = No

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

[webcam]
comment = Webcam
path = /var/ guest ok = Yes
 
even i have one problem relating to windows and linux file sharing.

i have 2 linux box and a windows nt server and windows xp workstation, all in one domain. now i have installed smb and swat on both the linux box, but i am able to access the shared files only in one linux box say A ( from both win and the other linux say B). but i am not able to access any of the files on B either from win nor from linux.

when i try to do a smbclient //hostname/sharename -U username%password

immediately i get an error saying connection refused. i am able to ping B from all other machines (win and linux).

can any one guess what can be the problem. how can i trouble shoot this one ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top