Re: [Samba] Re: In place upgrade

2008-10-11 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rubin Bennett wrote:
> On Fri, 2008-10-10 at 13:56 +0100, Kristian Davies wrote:
>>> For a system installed without a package manager (i.e. make install),
>>> then you make a copy of your passdb.tdb, secrets.tdb and smb.conf,
>>> upgrade, and put those 3 files back in.
>> That's the puppy.  So, stop services, mv sambadir, install new version
>> afresh, copy over those three files and start services.
>>
>> Will that affect the machines AD machine account with sid's etc... or
>> is that why the secrets.tdb are copied over?
>>
> That's why secrets.tdb is copied over.  However, if you're changing
> machines or upgrading OS at the same time, you'll need to copy the user/
> machine entries in /etc/passwd, /etc/group and /etc/shadow as well or
> you'll get lots of ugly messages about your password database being
> corrupt.

If you're moving machines, you have to also worry about the other
persistent TDB's. You can lose all of your printers/forms/etc. otherwise.

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer II
 |$&| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI8SVJmb+gadEcsb4RAk8QAKCZA7DaFH4F40RYwAg28lSnJsVpkACfbMmj
HBEBF2R1aRjgNN2hM83dg8I=
=wqXf
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] Re: In place upgrade

2008-10-10 Thread Kristian Davies
> As root:
>
> killall smbd nmbd winbindd
> make install
> /usr/local/samba/sbin/nmbd
> /usr/local/samba/sbin/winbindd
> /usr/local/samba/sbin/smbd
>
> Upgrade done ! :-).

Another good suggestion.

Cheers,
Kristian
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: In place upgrade

2008-10-10 Thread Jeremy Allison
On Fri, Oct 10, 2008 at 12:42:10PM +0100, Kristian Davies wrote:
> On Wed, Oct 8, 2008 at 3:24 PM, Kristian Davies
> <[EMAIL PROTECTED]> wrote:
> > Excuse the basic question but how do I do an in place upgrade from
> > src? 3.2.2 to say 3.2.4.
> 
> *bump*
> 
> Please feel free to berate me on no already knowing this and if I
> don't already know it, maybe I shouldn't be installing src.
> 
> The docs don't mention anything, I'm assuming this is because it
> expects you to already know how.

As root:

killall smbd nmbd winbindd
make install
/usr/local/samba/sbin/nmbd
/usr/local/samba/sbin/winbindd
/usr/local/samba/sbin/smbd

Upgrade done ! :-).

Jeremy.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: In place upgrade

2008-10-10 Thread Kristian Davies
On Fri, Oct 10, 2008 at 2:23 PM, Rubin Bennett <[EMAIL PROTECTED]> wrote:
> On Fri, 2008-10-10 at 13:56 +0100, Kristian Davies wrote:
>> > For a system installed without a package manager (i.e. make install),
>> > then you make a copy of your passdb.tdb, secrets.tdb and smb.conf,
>> > upgrade, and put those 3 files back in.
>>
>> That's the puppy.  So, stop services, mv sambadir, install new version
>> afresh, copy over those three files and start services.
>>
>> Will that affect the machines AD machine account with sid's etc... or
>> is that why the secrets.tdb are copied over?
>>
> That's why secrets.tdb is copied over.  However, if you're changing
> machines or upgrading OS at the same time, you'll need to copy the user/
> machine entries in /etc/passwd, /etc/group and /etc/shadow as well or
> you'll get lots of ugly messages about your password database being
> corrupt.

Awesome, thanks for the pointers!

Cheers,
Kristian
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: In place upgrade

2008-10-10 Thread Rubin Bennett
On Fri, 2008-10-10 at 13:56 +0100, Kristian Davies wrote:
> > For a system installed without a package manager (i.e. make install),
> > then you make a copy of your passdb.tdb, secrets.tdb and smb.conf,
> > upgrade, and put those 3 files back in.
> 
> That's the puppy.  So, stop services, mv sambadir, install new version
> afresh, copy over those three files and start services.
> 
> Will that affect the machines AD machine account with sid's etc... or
> is that why the secrets.tdb are copied over?
> 
That's why secrets.tdb is copied over.  However, if you're changing
machines or upgrading OS at the same time, you'll need to copy the user/
machine entries in /etc/passwd, /etc/group and /etc/shadow as well or
you'll get lots of ugly messages about your password database being
corrupt.

Rubin

-- 
Rubin Bennett
RB Technologies
http://thatitguy.com
[EMAIL PROTECTED]
(802)223-4448

Think for yourselves and let others enjoy the privilege to do so, too.
~Voltaire


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: In place upgrade

2008-10-10 Thread Kristian Davies
> For a system installed without a package manager (i.e. make install),
> then you make a copy of your passdb.tdb, secrets.tdb and smb.conf,
> upgrade, and put those 3 files back in.

That's the puppy.  So, stop services, mv sambadir, install new version
afresh, copy over those three files and start services.

Will that affect the machines AD machine account with sid's etc... or
is that why the secrets.tdb are copied over?

Cheers,
Kristian
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Re: In place upgrade

2008-10-10 Thread Rubin Bennett

On Fri, 2008-10-10 at 12:42 +0100, Kristian Davies wrote:
> On Wed, Oct 8, 2008 at 3:24 PM, Kristian Davies
> <[EMAIL PROTECTED]> wrote:
> > Excuse the basic question but how do I do an in place upgrade from
> > src? 3.2.2 to say 3.2.4.
> 
> *bump*
> 
> Please feel free to berate me on no already knowing this and if I
> don't already know it, maybe I shouldn't be installing src.
> 
> The docs don't mention anything, I'm assuming this is because it
> expects you to already know how.
> 
> -Kristian
If you're on an RPM based system, then you just upgrade your rpms (rpm
-Uvh {packages}.

For a system installed without a package manager (i.e. make install),
then you make a copy of your passdb.tdb, secrets.tdb and smb.conf,
upgrade, and put those 3 files back in.
-- 
Rubin Bennett
RB Technologies
http://thatitguy.com
[EMAIL PROTECTED]
(802)223-4448

Think for yourselves and let others enjoy the privilege to do so, too.
~Voltaire


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba