LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2006, 05:04 AM   #1
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403
Blog Entries: 1

Rep: Reputation: 30
Question Samba share doesnt open in XP


G'day,
i just set up a samba share manually on my FC4 box so i can access it from my XP laptop and friends desktop all on our LAN. When i access it i get the "The network path was not found" error in XP. The smb.conf file is as follows :

Quote:
[global]
netbios name = Gama_wing
server string = Anshuman
workgroup = MSHOME
security = share
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
log file = /var/log/samba/%m.log
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = yes
hostname lookups = yes
hosts equiv = /etc/hosts
hosts allow = 192.168.0.0/255.255.255.0 localhost
hosts deny = All
interfaces = lo eth0
bind interfaces only = yes
guest ok = yes
browse list = yes

[public]
path = /home/anshuman/Sounds
comment = Music
guest ok = yes
create mode = 0766
browseable = yes
public = yes
read only = no
The computer shows up in the Mshome in my network places on xp however i get the good old cannot access error ( why can windows implement more accurate and specific debugs ?? ) Any ideas onn how i can solve it ? i have started and restarted the samba server many times without any success. alos, when i try "smbclient -L localhost" and enter my user passwd is says "tree connect failed: Call returned zero bytes (EOF)" does that have anything to do with anything ??

Last edited by WhiskeyTangoFoxtrot; 03-16-2006 at 05:05 AM.
 
Old 03-17-2006, 11:07 AM   #2
doublejoon
Member
 
Registered: Oct 2003
Location: King George, VA
Distribution: RHEL/CentOS/Scientific/Fedora, LinuxMint
Posts: 370

Rep: Reputation: 44
Get rid of these lines in "Global"


encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd


You security level is "share" so why even use encryption or for that matter smbpasswd
 
Old 03-17-2006, 12:12 PM   #3
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
hostname lookups = no

Encrypted passwords are on by default in Samba and XP uses them, so no reason to take that out. Also security=share means that each share is tied to a password, although authentication will probably still "ask" for a username/password pair. For this to work I belive Samba needs to know a valid user accout to use as the guest account, search for the term, "guest account" in the man page for smb.conf for further details.
 
Old 03-17-2006, 02:09 PM   #4
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403

Original Poster
Blog Entries: 1

Rep: Reputation: 30
well, i tried what doublejoon mentioned and no change. i then tried what Darin suggested and same thing ( yes i did restart samba after chengin the config file :P )

abt the valid user name, i heard that i should change my XP user name and password to that used by samba which i did but still there was no change ( used "smbpasswd -a windows_usr_name" ). No clue what to do next.

On a side note, what if i try getting a friend using suse to connect to my share. how would he do it ? in nautilus under networks all we see is Windows share and there is nothing inside it.

thanx.
 
Old 03-18-2006, 07:31 AM   #5
Harpoontang
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Have you tried accessing the samba share by typing the following in the address bar of Windows Explorer: \\IPaddressofyourLinuxBox\sharename

I sometimes find that for whatever reason sometimes the windows box can't resolve the name of my linux box.
 
Old 03-18-2006, 01:56 PM   #6
WhiskeyTangoFoxtrot
Member
 
Registered: Oct 2005
Location: Windsor, Ontario, Canada
Distribution: Fedora Core 5,4,3 & Ubuntu 6.06, 8.10
Posts: 403

Original Poster
Blog Entries: 1

Rep: Reputation: 30
well, i tried "\\192.168.0.1\Gama_wing" and then it asks me for a user name and password ! i thought i had dissabled that by making this a share.. anyhow i had created the user/pass already so i tried that but nothing worked.any ideas ?

it would also be great if i can see my windows shares on my desktop, i dont mind if i have to do 1 way comunication all the time. how can i do that ? in nautilus there is a network icon. how can i configure its URL to point towards the windows workgroup "MSHOME" ??
 
Old 03-19-2006, 06:34 AM   #7
Harpoontang
LQ Newbie
 
Registered: Mar 2006
Posts: 9

Rep: Reputation: 0
Hmmm, it asked for a userid and password.....well lets start from the beginning....

If I were you I'd go ahead and setup samba for user level security. Most people do it this, I do it this way and this is what I know.

Next, what are the userid's and passwords you use to log into your windows box(s)? Create those user ids and passwords on you linux box and then again in samba. Now everyone should have a home directory.

Next, this Gama_wing share, did you define it in /etc/samba/smb.conf? It needs a section:
[gama_wing]
comment = whatever
path=/some/directory
writable=yes
guest ok=yes

Next chmod 777 /some/directory

Try to access it from windows.
 
  


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
can't mount samba share and then write to the share calbazon Linux - Software 8 10-10-2010 01:35 AM
samba: linux mounted share = choppy playback, windows mounted share = smooth kleptophobiac Linux - Software 2 04-10-2005 08:23 AM
Simple Samba Setup, Share & Not Share timmywo Linux - Software 4 07-30-2004 07:27 AM
Samba share - network name no longer available when browsing samba from win2k dorango Linux - Software 0 03-02-2004 01:02 PM
Win XP doesnt see samba share, but can connect to it. bripage Linux - Software 25 04-26-2003 02:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:32 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