On 13/11/2010, at 12:04am, Harry Putnam wrote:

> This samba problem (windows machines cannot connect to gentoo server)
> seems to have followed a recent update including samba.
> 
> qlop shows: Mon Nov  1 05:10:33 2010 >>> net-fs/samba-3.5.6
> 
> Usually I've found I might need to redo passwords with smbpasswd.
> 
> This time, that is not sufficient.
> 
> Looking at the logs...
> 
> I've included a snippet below, but let me say that I first restarted
> samba, then rm'ed all log* files under /var/log/samba.

You haven't demonstrated you can connect using a Linux machine and the Samba 
command line tools. Connecting using the same machine (to localhost) should be 
sufficient, however it's probably better to connect from a 2nd Linux box. You 
haven't shown us using `ps` that smbd and nmdb are running, nor have you posted 
the output of `netstat` (appropriately grepped - e.g. `netstat -aep | grep -e 
samba -e smb -e nmb`). When you `/etc/init.d/samba restart` does Samba start 
and stop cleanly?

I also suggest you try the Windows command line tools, `net use` &c. When you 
connect using the Windows GUI tools you need to be *really* verbose about which 
specific icons and buttons you clicked on. Mounting a network share as a drive 
allows you to specify a username for the share / connection, whereas Start > 
Run and typing "\\server\share" may not (and may use a different username, 
attempting to connect as guest).

These articles demonstrate how to use `nmblookup` and `smbclient` for 
troubleshooting purposes:
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/install.html#id2553540
http://tinyurl.com/2kpojq - scroll down to "List Shares Available on the Server"
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/diagnosis.html
http://tinyurl.com/32sq32g
http://oreilly.com/catalog/samba/chapter/book/ch09_02.html
http://tinyurl.com/2dn3w9r
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch12_:_Samba_Security_and_Troubleshooting
http://tinyurl.com/pkqfz
http://www.samba.org/samba/docs/Samba24Hc13.pdf (PDF)
http://tinyurl.com/35v6kqz (PDF)

Three of these articles are top google hits for "troubleshooting samba". I have 
used the first two links personally to debug Samba within the last 4 weeks.

The reason I have replied to your last two posts saying "you haven't 
demonstrated that ..." is not personal. My thought process before replying was 
"this guy hasn't given us enough information ... I'll ignore this post ... 
well, that's no help to him - having told us so little he'll be waiting forever 
for help  ... hmmmn, I wonder if it's the same guy". And it was you. Sorry 
about that.

The information you have given us is scant, and without more we're left 
guessing around the same as you are. I'm pretty much rehashing the famous essay 
"How to ask questions the smart way" here, but I'm trying to be more terse and 
less patronising. Sorry if I fail at that latter.

But in my experience, if you make the effort to google, follow the obvious 
solutions and *document fully* that you've followed them (this last part is 
VERY important) in your post to the mailing list then 8 times out of 10 you'll 
solve your own problem without needing to post, and a further 9th time out of 
10 someone will quickly be able to give you a one-line answer showing your 
error.

My experience is that when you take the time to do the documenting stage of 
this - tediously re-doing everything you did before and copying and pasting it 
into an email, making sure you methodology is pristine and clear, then it 
forces your mental processes to slow down. It's frustrating to have to repeat 
things you've already tried and it takes an hour or two, but 8 times out of 10 
the slower pace of re-doing your troubleshooting leads you to discover the 
problem for yourself. 

You should not to be trying to *tell* us you have a problem, you should be 
trying to *prove* to us that you have a problem.

Samba is frikkin' nasty to troubleshoot, it's boring and it's inconvenient, and 
I agree that it seems more so than most other services. I don't really know why 
this is. I too find the logfiles pants. Particularly when it comes to Samba I 
find a real reluctance to sit down, roll my sleeves up and get on with what 
I've just suggested you do, but there's no way to know more without doing so. 

Stroller.


Reply via email to