linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Saving user accounts on reinstall
@ 2004-03-09 15:27 Adam Lang
  2004-03-09 15:51 ` Matías López Bergero
  2004-03-10  7:30 ` Keith Morse
  0 siblings, 2 replies; 8+ messages in thread
From: Adam Lang @ 2004-03-09 15:27 UTC (permalink / raw)
  To: linux-admin

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-09 15:27 Saving user accounts on reinstall Adam Lang
@ 2004-03-09 15:51 ` Matías López Bergero
  2004-03-09 16:18   ` Hal Wigoda
  2004-03-10  7:30 ` Keith Morse
  1 sibling, 1 reply; 8+ messages in thread
From: Matías López Bergero @ 2004-03-09 15:51 UTC (permalink / raw)
  To: Adam Lang; +Cc: linux-admin

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

Regards!
Matías.


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?
> 
> 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-09 15:51 ` Matías López Bergero
@ 2004-03-09 16:18   ` Hal Wigoda
  2004-03-09 16:46     ` Jens Knoell
  0 siblings, 1 reply; 8+ messages in thread
From: Hal Wigoda @ 2004-03-09 16:18 UTC (permalink / raw)
  To: Matías López Bergero; +Cc: linux-admin

where is the mail transfer agent config stored?

----- Original Message ----- 
From: "Matías López Bergero" <mlopezb@udesa.edu.ar>
To: "Adam Lang" <aalang@rutgersinsurance.com>
Cc: <linux-admin@vger.kernel.org>
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ías.
>
>
> 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?
> >
> > 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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-09 16:18   ` Hal Wigoda
@ 2004-03-09 16:46     ` Jens Knoell
  0 siblings, 0 replies; 8+ messages in thread
From: Jens Knoell @ 2004-03-09 16:46 UTC (permalink / raw)
  To: linux-admin

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-09 15:27 Saving user accounts on reinstall Adam Lang
  2004-03-09 15:51 ` Matías López Bergero
@ 2004-03-10  7:30 ` Keith Morse
  2004-03-10  7:45   ` Andrew Kelly
  2004-03-10 14:02   ` Adam Lang
  1 sibling, 2 replies; 8+ messages in thread
From: Keith Morse @ 2004-03-10  7:30 UTC (permalink / raw)
  To: Adam Lang; +Cc: linux-admin

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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-10  7:30 ` Keith Morse
@ 2004-03-10  7:45   ` Andrew Kelly
  2004-03-10 14:02   ` Adam Lang
  1 sibling, 0 replies; 8+ messages in thread
From: Andrew Kelly @ 2004-03-10  7:45 UTC (permalink / raw)
  To: linux-admin@vger.kernel.org

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-10  7:30 ` Keith Morse
  2004-03-10  7:45   ` Andrew Kelly
@ 2004-03-10 14:02   ` Adam Lang
  2004-03-11 23:09     ` Keith Morse
  1 sibling, 1 reply; 8+ messages in thread
From: Adam Lang @ 2004-03-10 14:02 UTC (permalink / raw)
  Cc: linux-admin

what do you mean by "trim"?
----- Original Message ----- 
From: "Keith Morse" <kgmorse@mpcu.com>
To: "Adam Lang" <aalang@rutgersinsurance.com>
Cc: <linux-admin@vger.kernel.org>
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


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Saving user accounts on reinstall
  2004-03-10 14:02   ` Adam Lang
@ 2004-03-11 23:09     ` Keith Morse
  0 siblings, 0 replies; 8+ messages in thread
From: Keith Morse @ 2004-03-11 23:09 UTC (permalink / raw)
  To: Adam Lang; +Cc: linux-admin

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" <kgmorse@mpcu.com>
> To: "Adam Lang" <aalang@rutgersinsurance.com>
> Cc: <linux-admin@vger.kernel.org>
> 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.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-03-11 23:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-09 15:27 Saving user accounts on reinstall Adam Lang
2004-03-09 15:51 ` Matías López Bergero
2004-03-09 16:18   ` Hal Wigoda
2004-03-09 16:46     ` Jens Knoell
2004-03-10  7:30 ` Keith Morse
2004-03-10  7:45   ` Andrew Kelly
2004-03-10 14:02   ` Adam Lang
2004-03-11 23:09     ` Keith Morse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).