Re: URGENT- Samba- I need help

Chris Drumgoole <[email protected]> Thu, 11 Mar 2004 09:20:18 +0800
Newsgroups gmane.org.user-groups.linux.beijing.tech
Organization Beijing Linux User Group
Message-ID <opr4obb4xslzpzj0__37233.7203393274$1078968051@mail.beijinglug.org>
Matteo,

DHCP shouldn't effect samba,, basically, as long as nmbd is running 
(restarted after the ip changes, i think the reboot is necessary), then 
the other network neighborhood machines will find it.  This seems not to 
be your problem. duh.

On your network, how are people authenticated?  Through your linux 
machine?  Through a windows domian server?  Individual machines?  I am 
almost positive it is a Windows-Linux authentication problem.  another 
duh. My guess is when yuo try to log on to your linux box through XP's 
network neighborhood, then linux doesn't see your window's username 
properly, that is why it won't let you log in.  This I am pretty sure 
about, but never 100%.

I recommend enabiling logging...

in the config file,  do something like:
log file = /var/log/samba/log.%m
log level = 3

and tail -f the log.smbd log file to see what happens when you try to log 
on (of course killall -HUP smbd first!).

I just read Richard's post (well, one of them), he asked if you made 
accounts on your linux machine to match the XP accounts.  Did you?  This 
is necessary.

Let us know what the log results are.

-- 
Chris Drumgoole
Secretary, BeijingLUG

On Wed, 10 Mar 2004 19:21:05 +0800, Graham Brown <[email protected]> 
wrote:

> Matteo,
>
> If the server is set up Ok it must be in the XP end of things.
>
> Can you see one XP box from the other?
>
> If you have not tried it, "share" something on one XP and see of you can 
> see it from the other.
>
> I used fixed IP so I am not sure how DHCP works in this but it 
> presumably works on the name of the server and the directory.
> If you have been setting up as \\localhost\share - it will not work for 
> the reasons that Ben outlined.
>
> I presume that you have tried setting it up as a network drive?
>
> My network places > right click >map network drive >  browse etc
>
> and At 06:29 PM 10/03/2004 +0800, you wrote:
>> if i log into the samba server from a window box using explorer
>> file://192.168.0.105
>> i got a log in box
>> and samba username and password set up on the server are working fine
>>
>> if instead of the ip number I use the server hostname "localhost" I get 
>> error
>> if I use network neighborhood also get error
>>
>> I use dhcp in my network
>>
>>
>> from mac osx no problem from network interface and also to print on the 
>> 2 shared printers
>>
>> from the browser if I use the ip number to reach the server is not a 
>> problem but if I use
>> "localhost" is not reachable
>>
>> guys thanks a lot, you are really cooperative!!
>>
>>
>>
>> Matteo, I will send the samba config file in the next mail
>>
>> ciao
>>
>> On Mar 10, 2004, at 5:41 PM, Graham Brown wrote:
>>
>>> Matteo,
>>>
>>> It seems to me that it is probably something basic in the permissions:
>>>
>>> You can open smb.conf with vi.  In RH it is at /etc/'samba/
>>>
>>> it should contain a line like valid users = username1 username2 
>>> username 3 etc.  make sure that the XP usernames are properly listed 
>>> there.
>>>
>>> Also check the permissions on the share etc while you are there.  You 
>>> should also (separately) check the ownership of the share.
>>>
>>> Then to be certain that all is OK in Samba do the mandrake equivalent 
>>> of /sbin/service smb restart
>>> That will restart the samba server and that will update it with any 
>>> changes that you have made to the conf file.
>>>
>>> If you still have the same problem, try (as root):
>>> chown -R intendedownername.group /shared directory
>>> chmod -R 770 /shared directory
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> Regards,
>>>
>>> Graham Brown
>>>
>>> _______________________________________________
>>> blug-tech list
>>> [email protected]
>>> http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-tech
>>
>> _______________________________________________
>> blug-tech list
>> [email protected]
>> http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-tech
>
> _______________________________________________
> blug-tech list
> [email protected]
> http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-tech

_______________________________________________
blug-tech list
[email protected]
http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-tech