LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-31-2004, 05:08 PM   #1
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
Cannot use Samba to access RH9 from Windows XP


ARRRRGGGGHHH

Did a search on Google and this forum for the problem, and I am stuck.

SCENARIO: Samba on RH9, Windows XP home, local workgroup called MSHOME. Local internal 192 network.

I can ping the RH9 box from the Windows XP box.

Firewall is turned off at RH for testing.

Windows XP keeps getting error "Account is not authorized to log in from this station."
This occurs when I try to map a drive. or when I try to run from the Windows command line (e.g., \\<RH9-IP-address>)

It never prompts me for a user name or password, which could be a sign of the root cause?

My smb.conf file is the default vanilla except for the following:


workgroup = MSHOME
server string = Samba Server
hosts allow = 192.168.0. 127.
security = user

[public]
path = /var/www/html
public = yes
only guest = yes
writable = yes
printable = no

[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0664
directory mode = 0775

map to guest = bad user




My smbusers file looks like this:


# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest
mwilliams = Mike Williams




My smbpasswd file looks weird (is this a hashed password?)

mwilliams:500:8ADB0D4A3E947575B79AE2610DD89D4C:70194D4D60BE25C34C037CA102655656:[UX ]:LCT-4134EA5C:



Firewall is OFF on the RH9 box and the Windows XP box. I cannot see the RH9 box in the MSHOME workgroup on the Windows XP box.

IP chains disabled.

I have successfully stopped and restarted the SMB and NMB services after each change to the conf and user files.


One GOOGLE clue was to allow unencrypted passwords on XP box by changing the setting using gpedit.msc Of course, cannot get to any such setting on XP home. so I doubt that it matters.

Thanks.

plunday@nc.rr.com
 
Old 08-31-2004, 05:15 PM   #2
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Try the following smb.conf (it works for me, but it is absolutely evil in the security sense - anyone can access it, the password is empty, and it shares /). See if it works and tinker with it to suit your needs.


[global]
workgroup = MSHOME
wins support = yes
encrypt passwords = yes
browsable = yes
security = share

[root]
path = /
read only = yes
guest ok = yes
public = yes

For more information, Samba has very complete html documentation for deploying it. You can either download the samba sources and built it to get the documentation or get it somewhere else.
 
Old 08-31-2004, 05:30 PM   #3
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Nice job, bobwall! I had "Browsable" set to "NO" and I changed it as per your email.

So now, on the Windows XP box I now get an NT challenge/response login window, asking for my user name and password. So this is where it gets confusing when I am trying to edit the smbuser file directly, so I want to use the GUI to set user names and passwords.

But now I have another problem....I cannot get SERVER SETTINGS -> SAMBA SERVER to bring up the samba configuration window. Nothing happens at all. This GUI config tool worked fine earlier. Any ideas on how to get the GUI tool running again?
 
Old 08-31-2004, 05:39 PM   #4
plunday
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Here is the output when I try to run the Samba Server Config tool from a command line...


[root@localhost /]# redhat-config-samba
Traceback (most recent call last):
File "/usr/share/redhat-config-samba/redhat-config-samba.py", line 20, in ?
mainWindow.MainWindow(debug_flag)
File "/usr/share/redhat-config-samba/mainWindow.py", line 58, in __init__
self.samba_data = sambaParser.SambaParser(self)
File "/usr/share/redhat-config-samba/sambaParser.py", line 24, in __init__
self.parseFile()
File "/usr/share/redhat-config-samba/sambaParser.py", line 55, in parseFile
token = self.createToken(line)
File "/usr/share/redhat-config-samba/sambaParser.py", line 127, in createToken token = sambaToken.SambaToken(sambaToken.SambaToken.SAMBA_TOKEN_KEYVAL, (name, value), self.parent)
File "/usr/share/redhat-config-samba/sambaToken.py", line 20, in __init__
raise AttributeError, value
AttributeError: ('only guest', 'yes')


plunday@nc.rr.com
 
Old 08-31-2004, 05:55 PM   #5
bobwall
Member
 
Registered: Jul 2004
Location: Milpitas, California
Distribution: 1/2 Debian 1/2 my own
Posts: 189

Rep: Reputation: 30
Sorry, I don't use Redhat nor do I use samba gui configuration tools. Try using the SWAT gui configuration tool that is included with samba. See http://www.faqs.org/docs/samba/ch02.html (the section on enabling SWAT) for details. I think KDE also has a Samba configuration tool.
Happy hacking
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
WinXP cannot access samba shares from RH9 kc8tbe Linux - Software 24 02-20-2006 08:33 PM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
windows cant access samba jerryfreak Linux - Networking 13 10-15-2004 05:03 AM
How do I Access Windows resource via RH9? RedhatBadNoob Linux - Newbie 13 09-06-2004 10:35 PM
Can't access samba shares from windows nuzzy Linux - Software 2 07-17-2002 05:44 AM

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

All times are GMT -5. The time now is 02:05 PM.

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