Saving user accounts on reinstall

Saving user accounts on reinstall

am 09.03.2004 16:27:54 von Adam Lang

I am looking to reinstall an email server. I want to keep my user accounts
and passwords and transfer them to the new server. Is it as easy as copying
/etc/passwd and /etc/shadow and the /var/spool/mail directory?

Adam Lang
Systems Engineer
Rutgers Casualty Insurance Company
http://www.rutgersinsurance.com

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 09.03.2004 16:51:28 von mlopezb

And the home dirs, aliases and "mta".config too :)
I had no problems doing so in that way.

Regards!
Mat=EDas.


Adam Lang wrote:
> I am looking to reinstall an email server. I want to keep my user ac=
counts
> and passwords and transfer them to the new server. Is it as easy as =
copying
> /etc/passwd and /etc/shadow and the /var/spool/mail directory?
>=20
> Adam Lang
> Systems Engineer
> Rutgers Casualty Insurance Company
> http://www.rutgersinsurance.com

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 09.03.2004 17:18:12 von Hal Wigoda

where is the mail transfer agent config stored?

----- Original Message -----=20
=46rom: "Mat=EDas L=F3pez Bergero"
To: "Adam Lang"
Cc:
Sent: Tuesday, March 09, 2004 9:51 AM
Subject: Re: Saving user accounts on reinstall


> And the home dirs, aliases and "mta".config too :)
> I had no problems doing so in that way.
>
> Regards!
> Mat=EDas.
>
>
> Adam Lang wrote:
> > I am looking to reinstall an email server. I want to keep my user
accounts
> > and passwords and transfer them to the new server. Is it as easy a=
s
copying
> > /etc/passwd and /etc/shadow and the /var/spool/mail directory?
> >
> > Adam Lang
> > Systems Engineer
> > Rutgers Casualty Insurance Company
> > http://www.rutgersinsurance.com
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin=
" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>


-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 09.03.2004 17:46:29 von Jens Knoell

On Tuesday 09 March 2004 09:18, Hal Wigoda wrote:
> where is the mail transfer agent config stored?

Depends on your MTA :)

For sendmail its usually /etc/mail/*

Beware that you may need to rebuild the sendmail.cf if you're updating from
and old version to a newer one.

Jen
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 10.03.2004 08:30:05 von Keith Morse

On Tue, 9 Mar 2004, Adam Lang wrote:

> I am looking to reinstall an email server. I want to keep my user accounts
> and passwords and transfer them to the new server. Is it as easy as copying
> /etc/passwd and /etc/shadow and the /var/spool/mail directory?


Having just done this I'd include /etc/group and /etc/gshadow and don't
forget to trim the system accounts from the old files before adding to the
new ones.

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 10.03.2004 08:45:48 von Andrew Kelly

On Wed, 2004-03-10 at 08:30, Keith Morse wrote:
> On Tue, 9 Mar 2004, Adam Lang wrote:
>
> > I am looking to reinstall an email server. I want to keep my user accounts
> > and passwords and transfer them to the new server. Is it as easy as copying
> > /etc/passwd and /etc/shadow and the /var/spool/mail directory?
>
>
> Having just done this I'd include /etc/group and /etc/gshadow and don't
> forget to trim the system accounts from the old files before adding to the
> new ones.

And, if any of your "old" users have an exotic shell, don't forget to
twiddle /etc/shells.

Andy

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 10.03.2004 15:02:16 von Adam Lang

what do you mean by "trim"?
----- Original Message -----
From: "Keith Morse"
To: "Adam Lang"
Cc:
Sent: Wednesday, March 10, 2004 2:30 AM
Subject: Re: Saving user accounts on reinstall


> On Tue, 9 Mar 2004, Adam Lang wrote:
>
> > I am looking to reinstall an email server. I want to keep my user
accounts
> > and passwords and transfer them to the new server. Is it as easy as
copying
> > /etc/passwd and /etc/shadow and the /var/spool/mail directory?
>
>
> Having just done this I'd include /etc/group and /etc/gshadow and don't
> forget to trim the system accounts from the old files before adding to the
> new ones.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-admin" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: Saving user accounts on reinstall

am 12.03.2004 00:09:01 von Keith Morse

On Wed, 10 Mar 2004, Adam Lang wrote:

> what do you mean by "trim"?

I do not include any system account info (typically uid less than 100 )
from passwd, shadow, group, and gshadow. I then concantenate that info
into the respective files on the new server.



> ----- Original Message -----
> From: "Keith Morse"
> To: "Adam Lang"
> Cc:
> Sent: Wednesday, March 10, 2004 2:30 AM
> Subject: Re: Saving user accounts on reinstall
>
>
> > On Tue, 9 Mar 2004, Adam Lang wrote:
> >
> > > I am looking to reinstall an email server. I want to keep my user
> accounts
> > > and passwords and transfer them to the new server. Is it as easy as
> copying
> > > /etc/passwd and /etc/shadow and the /var/spool/mail directory?
> >
> >
> > Having just done this I'd include /etc/group and /etc/gshadow and don't
> > forget to trim the system accounts from the old files before adding to the
> > new ones.

-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html