LinuxQuestions.org
Help answer threads with 0 replies.
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 06-20-2003, 07:26 AM   #1
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Rep: Reputation: 30
samba in xp


i can see the samba server in network neighbourhood on windose xp but when i go to access it i get
"no service is operating at the destination network endpoint on the remote system"? im using rh9 my share is
[share]
comment = share
path = /home/share
writable = yes
guest ok = yes

i can access the samba server from the linux comp, by using smbclient //bmlinux/share -U bm
i have passwords encrypted(win xp has to have that so ive read), i dont need passwords for my share( i think? )
i have an xp administrator logon called bm and a user in linux called bm, could these be conflicting?
any help is much appreciated, thanks
 
Old 06-20-2003, 08:19 AM   #2
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

had a look in /var/log/log.smbd and /var/log/log.nmbd ? Any errors there ?

also you have to do two (three) steps to add an samba user:

1.) add the user to the system with adduser
2.) add the user to the samba system:

smbpasswd -ae $user

3.) after that give the user a passwd

smbpasswd $user

enter your password twice

after that the user should work fine (very old versions of samba have to be restarted)

4.) If you wanna use a user without a password use the -n switch

smbpasswd -n $user

or if you're adding a new user:

smbasswd -aen $user

cu
 
Old 06-21-2003, 05:22 AM   #3
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
ok here goes, i have the internet on winbox(192.168.1.1) and my linuxbox is sharing it the winbox recognises linuxbox as bmlinux (192.168.1.2) i can ping linuxbox from winbox and vice-versa when i start up samba winbox see's it as \\localhost i cant ping localhost
when i try to enter samba server(localhost) i get
"localhost is not accessible, you were not connected because duplicate names exists on the network" i have only 2 boxes
in windows hosts file there is
localhost 127.0.0.1
bmlinux 192.168.1.2
please help me, ive been trying to get this working for along time now.
 
Old 06-21-2003, 06:41 AM   #4
stony
Member
 
Registered: Jun 2003
Location: Europe / Germany / Saarland / Neunkirchen
Distribution: Debian (SID), Gentoo
Posts: 131

Rep: Reputation: 15
Hi,

you should try to use the names of the boxes and not localhost. localhost is the name for the loopback device that exists on EVERY machine. so if you try to ping or connect to localhost you'll end up on the machine you're working with and not somewhere on the net.

the problem windows tries to tell you is that, there is the loopback device on the local (windows) box and another machine with 192.168.1.2 that is also called localhost. so which one should windows use now ?

you should find out why your samba box is called localhost on the smb-net, and change the name to bmlinux. after that your winbox should see the linuxbox with it's true name bmlinux.

i hope i understood the question correctly, 'cause i didn't understand

"when i try to enter samba server(localhost) i get"

...

hope it works

cu
 
Old 06-21-2003, 07:14 AM   #5
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
ok, i think i understand. windows knows bmlinux(192.168.1.2) only because i have put it in the windows host file. the host name for linux box is localhost.localdomain so i have to change the hostname on linux box not just on the windows box. i think i understand. thanks so far
 
Old 06-22-2003, 03:36 AM   #6
bm1
Member
 
Registered: Nov 2002
Location: NZ
Distribution: freeBSD, slack
Posts: 156

Original Poster
Rep: Reputation: 30
ok, i have change the hostname and now bmlinux is bmlinux. i start up the samba daemons on linux box. on windows box i can see linux box in network neighbourhood. when i try to enter linux box from windows box the error.
"//bmlinux is unaccessible you might not have permission to use this network resource contact the administrator of the server to find out if you have permission /n No service is operating at the destination network endpoint on the remote system"

i use the redhat 9 samba server configure GUI
(windows box) account = bm with password X.
(linux box) account = bm with password Y.
my samba user = bm with password Z. i had to connect the samba username to a account already on the linux box = bm. i also had to connect the samba username to my windows account = bm. and thats where iam so far please help me
thanks
 
  


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
Samba/Cups print sharing problems (/var/spool/samba files) Gates1026 Linux - General 9 06-23-2013 01:33 AM
Samba - Connecting from WinXP Pro to Samba running on Debian critical Linux - Networking 1 02-03-2005 09:36 AM
I need the content from thegoldenear.org/toolbox/unices/samba/samba-setup.html rtg2001 Linux - Networking 1 08-05-2004 05:54 PM
Samba: Authenticate Linux-Clients in Samba Domain & Mount mule Linux - Software 0 12-10-2003 01:21 AM
when i restart SAMBA,it says:stop samba failed,start SAMBA OK! whepin Linux - Networking 3 12-26-2001 05:54 AM

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

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