Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #255684

Re: No /

From Greg Wooledge <greg@wooledge.org>
Newsgroups linux.debian.user
Subject Re: No /
Date 2023-03-07 17:50 +0100
Message-ID <G6IFI-aOGA-3@gated-at.bofh.it> (permalink)
References <G6Iw1-aOD5-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Mar 07, 2023 at 05:33:45PM +0100, Michael Lee wrote:
> Is it possible to reinstall the system and still retain the settings,
> logins, etc.? 

I'm assuming you already know about /home and have already taken care
of it.

To answer the question: yes, but not easily.  What you'll want to
do is make a backup copy of the /etc directory before reinstalling.
Then after reinstalling, carefully merge the contents of the old files
into the new files.

For local login accounts, you care about these files:

/etc/passwd
/etc/shadow
/etc/group

Merge the relevant lines (only the accounts *you* added, which correspond
to real humans, not the system accounts) from the backup files into the
reinstalled files, and use the "id" command and friends to verify that
they're working.

If you have user crontabs, you will need to move those over as well.  The
easiest way would be to save the output of "crontab -l" to a file before
the reinstall, and then use "crontab < my-saved-file" afterward, for
each user account that has a crontab.  If you prefer a lower-level approach,
the files are in /var/spool/cron/crontabs/.

For other "settings", whatever that word means, you'll need to find
the relevant files and once again merge contents from the backup version
into the reinstalled version.  This only applies to system-wide
configurations, not to personal settings.  Personal settings are in
/home and would be taken care of simply by not touching /home during
the reinstall.

You might want to start by making a list of all the things you care about,
which you want to migrate to the new system.  Figure out where all of
the files are, which pertain to those things.  Figure out how you'll merge
those files into the reinstalled system.  Just having a list, and having
gone through the mental effort of researching each thing, can make a big
difference.

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

No / Michael Lee <mlee2@t-online.de> - 2023-03-07 17:40 +0100
  Re: No / Greg Wooledge <greg@wooledge.org> - 2023-03-07 17:50 +0100
  Re: No / Charles Curley <charlescurley@charlescurley.com> - 2023-03-07 18:00 +0100
  Re: No / Alain D D Williams <addw@phcomp.co.uk> - 2023-03-07 18:10 +0100
    Re: No / Nicolas George <george@nsup.org> - 2023-03-07 19:10 +0100
  Re: No / Dan Ritter <dsr@randomstring.org> - 2023-03-07 18:10 +0100
    Re: No / Michael Lee <mlee2@t-online.de> - 2023-03-13 18:20 +0100
  Re: No / Jeffrey Walton <noloader@gmail.com> - 2023-03-07 18:50 +0100
  Re: No / <tomas@tuxteam.de> - 2023-03-07 19:40 +0100
    Re: No / David Wright <deblis@lionunicorn.co.uk> - 2023-03-08 00:10 +0100
      Re: No / Rodrigo Cunha <rodrigo.root.rj@gmail.com> - 2023-03-08 06:30 +0100
      Re: No / <tomas@tuxteam.de> - 2023-03-08 06:50 +0100
      Re: No / Tom Furie <tom@furie.org.uk> - 2023-03-08 13:50 +0100
        Re: No / Thomas Hochstein <thh@thh.name> - 2023-03-09 07:40 +0100
        Re: No / Michael Lee <m-lee@t-online.de> - 2023-03-13 18:50 +0100
          Re: No / David Wright <deblis@lionunicorn.co.uk> - 2023-03-13 20:10 +0100
            Re: No / Michael Lee <mlee2@t-online.de> - 2023-03-14 10:50 +0100
            Re: No / Michael Lee <m-lee@t-online.de> - 2023-03-15 17:30 +0100
              Re: No / Michael Stone <mstone@debian.org> - 2023-03-15 18:20 +0100
                Re: No / <tomas@tuxteam.de> - 2023-03-16 08:30 +0100

csiph-web