Friday, September 5, 2008

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

> (I think it uses /etc/init.d/samba for all the samba services. It may
> be "/etc/init.d/smb". When in doubt a "grep -i samba /etc/init.d" should
> find the right file.)

That won't work. You can do one of the following, though:
grep -i samba /etc/init.d/*
- or -
grep -ri samba /etc/init.d

The -r tells it to be 'recursive' and work on the whole directory,
allowing you to provide it with a directory for an argument.

The -i tells it to ignore case. Normally, grep wants files for
arguments, thus usually you would have to provide it with a wildcard on
the command-line.

Cheers,

--
Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E

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

On Thu, Sep 04, 2008 at 08:16:32PM -0400, Mark Warner wrote:
>> 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.)

RedHat uses a 'service' helper script, presumably to be more like
Windows. (You'd *think* it would handle dependancies, but then this *is*
RedHat we're talking about. They were a good five to seven years later
than Debian in adding package dependancies.)

In Debian, you can just stop and restart using the /etc/init.d scripts.
sudo /etc/init.d/samba stop
- and -
sudo /etc/init.d/samba start

(I think it uses /etc/init.d/samba for all the samba services. It may
be "/etc/init.d/smb". When in doubt a "grep -i samba /etc/init.d" should
find the right file.)

Cheers,

--
Steven Black <blacks@indiana.edu> / KeyID: 8596FA8E
Fingerprint: 108C 089C EFA4 832C BF07 78C2 DE71 5433 8596 FA8E