LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2004, 09:42 PM   #1
carlg
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Rep: Reputation: 15
Samba Question


I am trying to access a Linux directory from an XP machine on the same network.

When I go to "Map network drive" in winXP, XP recognizes that the drive is there (meaning XP does see Samba). It asks me for user name and password, but does not allow me to log in.

I already added users with smbpasswd and here is my smb.conf file


[global]

guest account = pcguest
workgroup = office

[jimsdir]
comment = jimsdir
path = /shared
read only = no
public = yes


It's pretty much a barebone smb.conf file.

Any suggestions?

Thanks
 
Old 07-08-2004, 10:33 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
well seeing as you mentioned XP, i can tell you one line you are going to need in
the global section is :
Code:
encrypt passwords = Yes
 
Old 07-08-2004, 10:43 PM   #3
edcutis
Member
 
Registered: Jun 2003
Location: USA, Missouri
Distribution: mandriva , Kubuntu, MEPIS
Posts: 140

Rep: Reputation: 15
I had the same problem once, and it was the firewall(s) blocking access. Make sure your firewall on the windows side has an open zone, example: 192.168.1.10 thru 192.168.1.15

I'll assume you have set the workgroup name in XP to 'office'. Control panel, system, tab #2 (computer name)

can you do **smbclient -L localhost**, and check the shares you are putting out on your workgroup? This might offer clues.
 
Old 07-08-2004, 11:09 PM   #4
carlg
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Original Poster
Rep: Reputation: 15
I actually think everything is OK on the Windows side.

It's the Linux that's not accepting the password.

I don't have access to the machine again till tomorrow.

I will try again then using some of the info both of you gave me.

Thanks for the help
 
Old 07-08-2004, 11:15 PM   #5
carlg
LQ Newbie
 
Registered: Apr 2004
Posts: 27

Original Poster
Rep: Reputation: 15
by the way,

How can I make sure that I'm updating the proper smb.conf file.

I was just thinking, what if smbd is looking somewhere else for the file.

My file is in /etc/samba
 
Old 07-09-2004, 06:38 AM   #6
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
if your using the /etc/samba/smb.conf file then thats the one it will read by default ..
 
Old 07-09-2004, 04:56 PM   #7
phlyersphan
Member
 
Registered: Jun 2004
Location: Chicago, IL USA
Distribution: Mandrake 10
Posts: 103

Rep: Reputation: 15
i'm a samba newbie, but adding

browseable = yes

to my share definitions fixed that problem for me.

Also double-check that the path to the share on the linux box is correct. (ie. the /shared path). I had one share that was not allowing me to log in, but the problem ended up being that I typed the path wrong in my smb.conf file. Once I fixed it, I restarted samba (not sure if that was necessary but I know Apache always wants a restart after editing its conf file, so I did it for samba), and the share worked.

good luck!!
 
  


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
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 08:19 AM
Samba question Ryknow215 Linux - General 3 02-23-2004 07:11 PM
Samba question Marklar Linux - Networking 30 01-02-2004 04:44 PM
A Samba Question? gsmonk Linux - Networking 2 08-20-2003 10:14 AM
RE: Samba question pls help {Newbie question} Radiouk Linux - Networking 4 06-03-2002 07:40 PM


All times are GMT -5. The time now is 08:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration