LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-25-2002, 07:14 AM   #1
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Rep: Reputation: 15
Unhappy Samba, im almost there, help please


setup:
RH 7.2, (2) Win2000 pro machines, Linksys router using DHCP

Ive got RH 7.2 installed and working great. Now im trying to get Samba configured. After following all the steps in the "RH customization" PDF at the RedHat site, Im almost there but still have one problem. When I browse my network, my linux box is showing up as "localhost". When i click on it, i get an error saying "there is already a host on the workgroup by that name" bla bla bla. Also I can see my workgroup from the linux machine.

What gives ? somthing wrong with hosts and/or lmhosts file ?

Firstly I think it has something to do with my general networking configuration. why would my linux machine show up as localhost in my windows network neighborhood ?
 
Old 01-25-2002, 07:33 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
without a proper host name samba will have no choise other than defaulting to the default system host name i.e. localhost. use hostname to set your machine name

run testparm to check your smb.conf
 
Old 01-25-2002, 07:28 PM   #3
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by acid_kewpie
use hostname to set your machine name

run testparm to check your smb.conf
I run hostname and it gives me localhost.localdomain

This is even after setting it in network config (run command neat) and in the KDE network config tool thingy.

so i used hostname this time to set it to something else. Guess what - when I browse the network with windows I still see the linux box and its named "localhost".

:smash:
 
Old 01-25-2002, 07:35 PM   #4
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Original Poster
Rep: Reputation: 15
reboot windows

after rebooting windows and setting my linux hostname to something other than localhost, i no longer see the linux machine in windows network neighborhood.
 
Old 01-25-2002, 08:28 PM   #5
RedHat123
Member
 
Registered: Dec 2001
Posts: 60

Original Poster
Rep: Reputation: 15
Wink hacking around

well, at least now i can see the linux machine with the proper hostname. now when i click on it, i get a message saying the machine is not accessible
and "the network path was not found"

hmmmm

i AM getting closer, stay tuned to this channel for futher information folks!

Last edited by RedHat123; 01-25-2002 at 08:36 PM.
 
Old 01-29-2002, 12:20 PM   #6
sx10
Member
 
Registered: Jan 2002
Posts: 34

Rep: Reputation: 15
I am probably a waste of time for you but I am just starting up with RHLX 72 and yes it works, can browse web, send&receive mail and all that. Next step is to reveal the RHLX box to the rest of the (W98, W2K, WXP) network both ways. What did you do at the RHLX end to get Samba going (I installed it at install time)?
Any help appreciated.
 
Old 01-29-2002, 12:26 PM   #7
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
hey RedHat123.... I have recenlty been struggling with the same problem as you ... and I believe I have the answer. what I need to know is how you have you smb.conf file set up?
 
Old 01-29-2002, 04:50 PM   #8
bripage
Member
 
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230

Rep: Reputation: 30
Well.. heres how I did it... (baer in mind that Im running a Win2k network).


smb.conf looks like this:


[global]
workgroup = home
public = yes
log file = /etc/samba/log.%m
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd

[share]
comment = Linux share space
path = /home/share
browsable = yes
writable = yes
read only = no


Then since I have encrypted passwords, I had to make the file called "smbpasswd". To do this i just used pico. Save the save file as that name without putting anything into it. Then at the console, I used the "smbpasswd -a Brian" command to create a new samba user.



*NOTE* Although you have set up the share space as read/writeable, the new accounts will not be able to read or write to that space. In order to allow users read/write access, you will need to use the "chmod a+rwx /your/share/directory" command.



Now when you try to connect to the samba client using another computer, you should gedt the user prompt and be able to log in.
 
  


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/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 - Networking

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