Thursday, September 4, 2008

Re: [BLUG] SUCCESS! Certain XP machines won't connect to Samba share

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mark,

On Thu, 4 Sep 2008 at 8:16pm, Mark Warner wrote:

> Shing-Shong Shei wrote:
> > > Windows machine would *not* connect by \\server\share name, but it did
> > > connect by \\lan_ip\share.
>
> Response inline...
>
> > Try this:
> >
> > 1) service smb stop
> > 2) rm /etc/samba/secrets.tdb
>
> I have an install of the Debian Lenny based MEPIS 8 beta here at home, and the
> above file doesn't appear to exist. (The machine I've been working on is the
> Etch based MEPIS 7.)

The secrets.tdb file may be stored in a different location. On my
gentoo system, this file is located at
/var/lib/samba/private/secrets.tdb

This file contains the SID and machine password for your server.

> > 3) find /var/cache/samba -type f | xargs rm
>
> Would you mind telling me what the above command is actually doing? Looking at
> the xargs man page, it appears that I'm removing something??? from
> /var/cache/samba???

This is removing all files from the /var/cache/samba directory and all
subdirectories underneath. From man smbd:

TDB FILES
Samba stores it's data in several TDB (Trivial Database) files,
usually located in /var/lib/samba.

(*) information persistent across restarts (but not necessarily
important to backup).

account_policy.tdb*
NT account policy settings such as pw expiration, etc...
...

Based on the directory name and its contents, removing all of the
files here isn't a big issue, as long as the smb service is stopped at
the time.

If you are curious as to the contents of any of these files, the
simplest way to review their contents is probably with the tdbdump
command, which is included with samba.

chris

- --
Chris Shelton
Indiana University - Financial Management Services
- -

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)

iD8DBQFIwI7zM5TknMKatUwRAu3SAJ9PJiNssApl8ux16dVqxTRtjAQcbwCfVVQO
yUsnaRB8C1EPlX2wOBd5/eY=
=sImo
-----END PGP SIGNATURE-----

No comments: