main logo
Subject: [ProLinux]Re: Getting Samba Running
Author: Chet Gardiner
Posted: 2002/12/30 16:34:00
 
View Entire Thread
New Search


Ooops. I left something out. I found this out when I installed another
Linux on one of my Win2K boxes.

See below: I had to add the following to the smb.conf file:

netbios name = <something other than localhost>

Samba defaults to localhost and that conflicted with my DSL router/dhcp
server which, oddly enough, calls itself LocalHost.

I restarted samba and voila!

I created the smb


----- Original Message -----
From: "Chet Gardiner" <chetdude .AT. pacbell .DOT net>
To: <profox@leafe.com>
Cc: <prolinux .AT. leafe .DOT com>
Sent: Friday, December 27, 2002 1:09 PM
Subject: Re: Linux Help - and Thanks to all who helped


> Just in case anyone else needs it, here's my journey to a successful
> connection from Win2K boxes to the Red Hat Linux 8.0 box using Samba. I'm
> posting it here on Profox (since the quest started there) but I'm going to
> address any further Linux stuff in the prolinux list.
>
> Good luck to anyone who's also trying this. It's just like anything in
> systems programming/cinfiguration, it's easy when you know how but just
> leave out one step and you're SOL.
>
> Thanks again to all of you who mailed to help me in this journey.
>
> Cheers;
>
> Chet
>
>
> -----------------------------------------------------------------------
> Windows network: Peer-to-peer - 5 Win2k, 1 XP box + the RH Linux box.
> SMC DSL Router set up as DHCP server
> RH Linux installed on P233, 256 MB, 8.4GB drive.
> (Next game, try Linux on a faster computer -- Gnome is
> understandably sluggish on this box)
>
> I installed Red Hat 8.0 as a workstation and included Samba as well.
About
> an hour and a half
>
> I immediately had a connection to the internet (through my dsl router).
> Cool.
>
> I updated my system on the Red Hat Network...about an hour and a half.
>
> (Then in just a couple of short weeks <g>, I did what boils down to the
> following)
>
> -----------------------------------------------------------
>
> I edited the following lines in the /etc/samba/samba.conf:
>
> # workgroup = NT-Domain-Name or Workgroup-Name
> workgroup = WORKGROUP <-- oddly enough, the name of my
> workgroup
>
> # server string is the equivalent of the NT Description field
> server string = Samba Workstation <-- doesn't matter what you call
it
netbios name = LinuxServer <-- Otherwise, the default is
LOCALHOST
>
> # Need this to contact Win2K, NT XP machines.
> encrypt passwords = yes <-- This was the default in
> RH8.0
> smb passwd file = /etc/samba/smbpasswd
>
> # I created the following public share
> [public]
> path = /usr/public
> public = yes
> only guest = yes
> writable = yes
> printable = no
>
> and followed the directions below from Leland to create the folder:
>
> --------------------------------------------------------------------
> --- Derek helped me out with the need for the following steps: -----
>
> If you're using windows 98/2000 or NT , you must enable SAMBA
> passwords and create a smbpasswd file by running the
> smbpsswd program or the server and adding an entry for each user .
>
> I added users in the Gnome GUI for each of my other computers.
>
> I used the Terminal (like the MS-DOS command window to re-enter the
> passwords for each windows machine.
>
> smbpasswd -a <computer name>
> <enter password and confirm> <-- I entered the Win2k computer
> name and shares' password. This doesn't seem to matter. Just choose a
user
name and password that's setup on the Linux box and has the permissions
(NON-ROOT)
that you want the windows machine to have.
>
> since they are 5 char on my Win boxes and Linux required at least 6 chars
> when setting up the users. I thought that my Win2k boxes would connect
> without asking for a user/password. I realize now that this doesn't
matter
> since Windows doesn't automatically authenticate to the Linux box the way
> Win2k boxes do to each other. I could have connected by entering any
valid Linux
> user/password combination that was also setup in Samba.
>
> --------------------------------------------------------------------------
--
> --
> --- Leland's final suggestion helped me turn the corner:
>
> Hi Chet
>
> Did you actually create a directory /usr/share on the linux machine. For
> example:
>
> mkdir /usr/public
> chmod 777 /usr/public
>
> then do a:
>
> /etc/rc.d/init.d/smb restart <-- I used the GUI to restart.
See
> below
>
> The linux /usr/public should show up under the NetBIOS name given to the
> linux box simply as public since that is the label you assigned it.
>
> LelandJ
>
>
> --------------------------------------------------------------------------
> --- Plus I edited the /etc/hosts/ file to make it right:
> --- the final piece was fixed this file that I had hosed...
>
> 127.0.0.1 Linux localhost <--- Linux being the
computer
> name, localhost the TCP/IP generic
>
> Originally it was;
> 127.0.0.1 localhost.domainname localhost
>
> I restarted Samba:
> Programs
> Server Settings
> Services
> Highlight SMB
> Click restart
> --------------------------------------------------------------------------
-
>
> And I'm in from Windows to Linux! I had to log on to the Linux box when I
> accessed the Linux share. There may be some way to automate this, I don't
> know.
>
> At least I only hosed the Linux install once...lost my internet connection
> and re-installed since I hadn't done much.
>
> ON TO MySQL and PHP!
>
> Chet
>
>
>
> PS: Since then, I've tried Gnomba, which is a network neighborhood like
GUI
> for Linux to see the windows shares. I was able to see my windows
computer
> names but when I click on one, I got an authentication error. That's when
I
> quit for a while.
>
>
>
[excessive quoting removed by server]



 
©2002 Chet Gardiner
<-- Prior Message New Search Next Message -->