Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-25-2002, 07:14 AM
|
#1
|
Member
Registered: Dec 2001
Posts: 60
Rep:
|
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 ?
|
|
|
01-25-2002, 07:33 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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
|
|
|
01-25-2002, 07:28 PM
|
#3
|
Member
Registered: Dec 2001
Posts: 60
Original Poster
Rep:
|
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:
|
|
|
01-25-2002, 07:35 PM
|
#4
|
Member
Registered: Dec 2001
Posts: 60
Original Poster
Rep:
|
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.
|
|
|
01-25-2002, 08:28 PM
|
#5
|
Member
Registered: Dec 2001
Posts: 60
Original Poster
Rep:
|
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.
|
|
|
01-29-2002, 12:20 PM
|
#6
|
Member
Registered: Jan 2002
Posts: 34
Rep:
|
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.
|
|
|
01-29-2002, 12:26 PM
|
#7
|
Member
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230
Rep:
|
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?
|
|
|
01-29-2002, 04:50 PM
|
#8
|
Member
Registered: Jan 2002
Location: Moorpark
Distribution: SLACK 8!
Posts: 230
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:16 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|