Samba works-somewhat!

This is a discussion on Samba works-somewhat! within the Linux Administration forums, part of the Linux Forums category; I am running Redhat Linux 9 and I am trying to connect to my Windows 98/XP boxes using Samba. ...


Go Back   Usenet Forums > Linux Forums > Linux Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2005
stewart allen
 
Posts: n/a
Default Samba works-somewhat!

I am running Redhat Linux 9 and I am trying to connect to my Windows 98/XP
boxes using Samba. I have had some limited success: On my Linux box, I am
able to browse the shares using Nautilus. I can see and access my Windows
share, no problem, but I also see a share "Localhost" which I am assuming is
the Linux share. This is unexpected. I was expecting a name I specified in
the config.

Second, and most important problem is that when I browse from Windows boxes
through Network neighborhood, my Windows share are visible as well as the
"Localhost" share. Double clicking on the "Localhost" icon will bring me to
the share folder I defined in Linux config. But clicking on that folder will
give me a password prompt. Of course no password I put in will match so I
cannot access any Linux share from the Window boxes.

Can anyone shed some light on what is happening here?
Thanks in advance

Stewart Allen

--
http://QLiner.com

The goal of the works of a genius' existance lies only in itself.


Reply With Quote
  #2 (permalink)  
Old 09-13-2005
Michael Trausch
 
Posts: n/a
Default Re: Samba works-somewhat!

stewart allen wrote:
> I am running Redhat Linux 9 and I am trying to connect to my Windows 98/XP
> boxes using Samba. I have had some limited success: On my Linux box, I am
> able to browse the shares using Nautilus. I can see and access my Windows
> share, no problem, but I also see a share "Localhost" which I am assuming is
> the Linux share. This is unexpected. I was expecting a name I specified in
> the config.
>
> Second, and most important problem is that when I browse from Windows boxes
> through Network neighborhood, my Windows share are visible as well as the
> "Localhost" share. Double clicking on the "Localhost" icon will bring me to
> the share folder I defined in Linux config. But clicking on that folder will
> give me a password prompt. Of course no password I put in will match so I
> cannot access any Linux share from the Window boxes.
>
> Can anyone shed some light on what is happening here?
> Thanks in advance
>
> Stewart Allen
>


If you named your machine "localhost" then it will use this. Samba will
use the host name of the machine that it is running on as the Windows
NetBIOS/SMB computer name. I have never overrode this, or even
attempted to do so, so I don't know if it is possible; I just name my
hosts and make sure that the appropriate mappings for the host names are
in /etc/hosts. For example, I have a machine named "Allspice" on my
network, and in the /etc/hosts file I have:

127.0.0.1 allspice.chadeux.net allspice localhost

Now, some would say that you shouldn't use 127.0.0.1 for naming the
machine, but it's always worked just fine for me. In fact, I tend to
have problems if I *don't* name the machines in this manner in addition
to setting /etc/HOSTNAME and the like.

- Mike
Reply With Quote
  #3 (permalink)  
Old 09-14-2005
Rajko M.
 
Posts: n/a
Default Re: Samba works-somewhat!

stewart allen wrote:

> I am running Redhat Linux 9 and I am trying to connect to my Windows 98/XP
> boxes using Samba. I have had some limited success: On my Linux box, I am
> able to browse the shares using Nautilus. I can see and access my Windows
> share, no problem, but I also see a share "Localhost" which I am assuming
> is the Linux share. This is unexpected. I was expecting a name I specified
> in the config.


Localhost is because samba server is running on it and no other name is
defined. It works just as in windows, it will show first computers and than
when you browse further it will show shares. The only difference is that
windows automatically set up links to actual shares in a single point
called Shares or similar.

Michael explained how to set host name etc.

>
> Second, and most important problem is that when I browse from Windows
> boxes through Network neighborhood, my Windows share are visible as well
> as the "Localhost" share. Double clicking on the "Localhost" icon will
> bring me to the share folder I defined in Linux config. But clicking on
> that folder will give me a password prompt. Of course no password I put in
> will match so I cannot access any Linux share from the Window boxes.


Samba has it's own password that can be set with "smbpasswd", please read
manual for the options and usage.

In console type:
$man smbpasswd

There is more command line tools in Samba package:
smbcacls smbfilter smbpasswd smbstatus
smbclient smbget smbprngenpdf smbtar
smbcontrol smbmnt smbsh smbtree
smbcquotas smbmount smbspool smbumount

>
> Can anyone shed some light on what is happening here?
> Thanks in advance
>
> Stewart Allen
>




The other way is to configure "share level" access control like windows tend
to do, where are password are not used and should be used only on trusted
network.

Documentation on http://www.samba.org contains few example configurations if
you select Learn Samba - By Example.

HTH
--
Regards,
Rajko.
Reply With Quote
  #4 (permalink)  
Old 09-17-2005
Jerry McBride
 
Posts: n/a
Default Re: Samba works-somewhat!

stewart allen wrote:

> I am running Redhat Linux 9 and I am trying to connect to my Windows 98/XP
> boxes using Samba. I have had some limited success: On my Linux box, I am
> able to browse the shares using Nautilus. I can see and access my Windows
> share, no problem, but I also see a share "Localhost" which I am assuming
> is the Linux share. This is unexpected. I was expecting a name I specified
> in the config.
>
> Second, and most important problem is that when I browse from Windows
> boxes through Network neighborhood, my Windows share are visible as well
> as the "Localhost" share. Double clicking on the "Localhost" icon will
> bring me to the share folder I defined in Linux config. But clicking on
> that folder will give me a password prompt. Of course no password I put in
> will match so I cannot access any Linux share from the Window boxes.
>
> Can anyone shed some light on what is happening here?
> Thanks in advance
>
> Stewart Allen
>


You're smf.conf file needs to be reviewed a bit closer. What ever user you
wish to allow into your Samba server, must be a unix user on that server
and have his/her id made known to Samba also.

Review adduser and smbpasswd...

I highly recommend you find a good book on Samba. My favorite is Oreilly's
"Running Samba" otherwise known as "the bird book". Excellent reading, good
examples and just down right fun. :')

Cheers.


--

************************************************** ****************************
Registered Linux User Number 185956
FSF Associate Member number 2340 since 05/20/2004
Join me in chat at #linux-users on irc.freenode.net
Buy an Xbox for $149.00, run linux on it and Microsoft loses $150.00!
3:03pm up 61 days, 15:02, 2 users, load average: 0.00, 0.00, 0.00
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0