LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-13-2007, 07:50 PM   #1
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
Can't Access Samba From Windows 2000


Ok, here's the situation, I have several Windows 2000 workstations in my house and I'm trying to get them to access the samba share on my small Linux server.

The linux server is running Mandrake 9.2 and Samba 2.2.4.

I can ping my Windows 2000 workstations from the linux server, but I can't ping the linux server from my Windows 2000 workstations.

I don't have any firewall running on the linux server and "iptables -L" is empty. I can log into the linux server from the Windows 2000 servers using putty and SSH.

I can see the linux server listed in "Network Neighbourhood" from my Windows 2000 workstations.

I have disabled all firewalls on my Windows 2000 workstation (they run ZoneAlarm).

Ok, what happens is when I try to access the linux server from any of the workstations it gives me this message:

Code:
\\server is not accessible.
The account is not authorized to login from this station.
I have "HKLM\System\CurrentControlSet\Services\Lanmanworkstation\EnablePlainTextPassword = 1" on all the work stations and "Send unencrypted password for 3rd party SMB servers" is enabled in the security policies of each workstation.

When I try:

Code:
net use \\server\share /user:gooduser
from the command prompt on one of the workstations I get:

Code:
System error 1240 has occurred.
The account is not authorized to log in from this station.
This is my /etc/samba/smb.conf file:

Code:
#======================= Global Settings =====================================
[global]

# 1. Server Naming Options:
   workgroup = HOME
   server string = Samba Server %v

# 2. Printing Options:
   printcap name = cups
   load printers = yes
   printing = cups
   printer admin = @adm

# 3. Logging Options:
   log file = /var/log/samba/log.%m
   max log size = 50

# 4. Security and Domain Membership Options:
;   hosts allow = 192.168.1. 192.168.2. 127.
   hosts allow = 192.168.0.
   map to guest = bad user
   security = user
;   encrypt passwords = yes
;  smb passwd file = /etc/samba/smbpasswd

# 5. Browser Control and Networking Options:
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
   remote announce = 192.168.0.255
   local master = no

# 6. Domain Control Options:

# 7. Name Resolution Options:
   wins support = yes
;   wins server = w.x.y.z
   dns proxy = no

# 8. File Naming Options:

#============================ Share Definitions ==============================
[homes]
   comment = Home Directories
   browseable = no
   writable = yes

[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# to allow user 'guest account' to print.
   printable = yes
   create mode = 0700

[print$]
   path = /var/lib/samba/printers
   browseable = yes
   read only = yes
   write list = @adm root
   guest ok = yes

[webphotos]
        comment = Photos Published on the Web
        path = /chroot/httpd/www/photos
        valid users = joe sarah
        public = yes
        writable = yes
Now, if I enable both of these:

Code:
   encrypt passwords = yes
   smb passwd file = /etc/samba/smbpasswd
and make sure I have the users added with:

Code:
smbpasswd -add gooduser goodpass
And make sure that the windows 2000 workstations are sending encrypted passwords, then I can see the list of shares for the server in "Network Neighbourhood" but only by using the "username@server" format for the user name.

However, I still can't access the share themselves, it gives me:

Code:
Incorrect password or unknown username for:
\\server\share
If I try to connect using the "username@server" user name, and if I just try to use the "username" format, it gives me this:

Code:
\\server\share is not accessible.
The credentials supplied conflict with an existing set of credentials.
If I try to connect directly to \\server\share without accessing it in "Network Neighbourhood" first, I get:

Code:
Incorrect password or unknown username for:
\\server\share
If I try to access it from the command line, I get:

Code:
net use \\server\share /user:joe
The password or user name is invalid for \\server\share.

Type the password for \\server\share:
System error 1326 has occurred.

Logon failure: unknown user name or bad password.
I can't for the life of me figure out why I can't access these file shares from my Windows 2000 workstations. They work perfectly fine from my linux workstations.

Thanks!
 
Old 02-14-2007, 12:45 AM   #2
itzamecwp
LQ Newbie
 
Registered: Dec 2006
Distribution: Ubuntu
Posts: 20

Rep: Reputation: 0
Try

hosts allow = 192.168.0.0/24, 127.0.0.0/8

Also, an nbtstat -R and nbtstat -r run from each 2K client.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
network access stopped after a boot into Windows 2000! neutron68 Linux - Networking 2 06-17-2006 07:56 PM
Samba+Windows 2000 Jimi_l SUSE / openSUSE 3 02-20-2005 10:24 AM
Still no rw access to windows 2000 server patpawlowski Linux - Networking 6 02-21-2004 01:45 AM
Access Linux files from MS Windows 2000? abowling Linux - Software 4 11-06-2003 11:58 AM
Samba and Windows 2000 aeb105 Linux - Newbie 11 08-17-2003 04:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration