LinuxQuestions.org
Help answer threads with 0 replies.
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 01-11-2004, 04:04 AM   #1
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Rep: Reputation: 15
Redhat 8.0 & SAMBA Problems


Hi everyone.
I will get straight to the piont. I have installed SAMBA and I would not have a clue on how to use or configure it. Sorry that last bit is lie I have herad of the smb.conf file but thats about it. So could someone out there please shed some light on this topic.

Thanks Brad
 
Old 01-11-2004, 05:52 AM   #2
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
I'm not that familiar with redhat (I should say anymore, because I cut my teeth on it, but use other distros now), but you should have a fairly easy setup/config program to use, and your docs or online help should be some assistance. If that doesn't help, you can look into something like webmin and/or swat, which are browser-based configuration programs.

One thing that many people get stuck on, is that you need to set up samba user accounts, in addition to your regular user accounts. This is easy enough using "smbpasswd -a username" (as root), but without it, you might go bonkers trying to get that windows box to talk to the Linux one.

As for smb.conf, it is nice to know what's in the file and the options, but save that for later. It's huge, but most people only need a few lines altered. Why chew through hours of reading, sorting out what you need from what you don't, when you can skim through swat and click on the options to read what they mean?

Hope this helps a little.
 
Old 01-11-2004, 09:31 PM   #3
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Thanks but more detail is needed. What is swat? I use webmin on my webserver works wounders. I might give it a go. What about a Network Places/Neighboorhood equilvant on Redhat is there such a thing.
 
Old 01-11-2004, 10:33 PM   #4
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
OK I have know installed webmin but how do create a SAMBA account. Can I do it useing webmin or do I have to use that command above.
 
Old 01-12-2004, 11:35 AM   #5
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
go look at the docs about samba. it will explain everything. at
http://www.redhat.com/docs/manuals/linux/
 
Old 01-12-2004, 06:29 PM   #6
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
If your using Red Hat, then Red Hat should come with some GUI program that will allow you to configure SAMBA. Its pretty straight forward. Even newbies can figure it out. Good Luck.
 
Old 01-12-2004, 07:14 PM   #7
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
I am using the config program and yes it is pretty straight forward. But it still doen't work. I must have some sort of major setting wrong. Also has anyone herd of this. That to see another PC on the MS network in linux you just type in smb://Computername/Sharename into your web browser because I herd it from somewhere else I can't remember where now but I have tried it and it doesn't seem to work.
 
Old 01-12-2004, 07:33 PM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
you have to have user accounts setup. i.e. on the windows machines when you type //computername/sharename you should get a username and password prompt. if your not getting the prompt try just//computername. if you still don't get a prompt then something is wrong w/your config. another thing that comes to mind is, did you restart the smbd & nmbd services after changing configs? i.e.


at the bash prompt :~# smbd stop
at the bash prompt :~#nmbd stop


at the bash prompt :~# smbd start
at the bash prompt :~#nmbd start
 
Old 01-12-2004, 08:10 PM   #9
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
I am getting the username & password prompt but every username & password I try doesn't work. I have tried recreating the Samba users many times but it doesn't work either.

And what I was actuly meaning before about smb://Computername/Sharename
was to do it in Redhat. So I could see the other MS machines on the network. Because I dont really see the piont of setting up this samba if it only works one way. Eg Can only see my linux box from a windows PC. and not see the windows box from my linux box.
 
Old 01-13-2004, 07:36 AM   #10
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
the user names and machine names get tricky. be sure when you get the promt that you are using a user name and password that is valid on the windows machine. i.e. if you have user 1 and administrator on the windows machine and user2 and root on the linux machine, when you are given the prompt to connect to the windows machine you have to use user 1 or administrator, and, vice/versa.
good luck.
 
Old 01-13-2004, 05:25 PM   #11
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
Then what is with the SAMBA user?
 
Old 01-13-2004, 06:10 PM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
they have to be created as well so the windows machines can connect.

Quote:
And what I was actuly meaning before about smb://Computername/Sharename
was to do it in Redhat. So I could see the other MS machines on the network.
here you'll need to use a user name and password that is valid on the windows machine.
 
Old 01-13-2004, 06:34 PM   #13
Big Brad
Member
 
Registered: Jul 2003
Location: Australia, Geelong
Distribution: Red Hat 8 & Fedora Core 3
Posts: 52

Original Poster
Rep: Reputation: 15
But when I do the smb:// thing it says invaild protocole or something like that.
 
Old 01-13-2004, 06:58 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
have you added samba users? have you created valid accounts on the windows machine? also as i staed before any changes to smb.conf, or, any added users and you'll have to restart the smb and nmb daemons. i'd also reboot the windows box after every restart of the daemons. have you done any reading here

http://us3.samba.org/samba/docs/using_samba/toc.html

it's very thorough.
 
Old 01-13-2004, 07:10 PM   #15
gurdib
Member
 
Registered: Jan 2004
Posts: 33

Rep: Reputation: 15
First of all, what do the logs say?
Second of all, don't be lazy - read the docs first, there are tons of guides and howtos and faqs on the net that address samba setup. If you don't set it up right, you could be opening your files and network for a major surprise. If you set it up enough to visibly run, this is not good enough, you need to understand what you did and why it is working the way it is. Thus, it is essential to read at least some documentation.

There could be numerous reasons why "samba just doesn't work". You could have username/passwords not set-up properly, your box might be filtering the traffic (depending on what setting you have for your firewall, if any) etc etc... You might have not allowed your IP address in the smb.conf file.

So, more information is needed.

G.
 
  


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
internet sharing & samba problems pelgrimforever Linux - Networking 82 08-29-2004 06:48 PM
Samba & Redhat questions DriveMeCrazy Red Hat 7 03-26-2004 12:17 AM
redhat 7.1 & samba james.farrow Red Hat 4 02-12-2004 04:42 AM
Samba & XP Access Problems chiefobeef Linux - Networking 1 10-21-2003 08:20 PM
Bind Problems & Samba contiga Linux - Networking 3 02-04-2002 06:57 AM


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