Linux Newbie help
 help / color / mirror / Atom feed
From: Jim Reimer <jdr@wa5rrh.org>
To: Adam@Luchjenbroers.com
Cc: linux-newbie@vger.kernel.org
Subject: Re: A few questions
Date: Mon, 02 Dec 2002 09:31:38 -0600	[thread overview]
Message-ID: <3DEB7CDA.7090809@wa5rrh.org> (raw)
In-Reply-To: <200212030023.37632.Adam@Luchjenbroers.com>

Adam Luchjenbroers wrote:
> On Monday 02 Dec 2002 11:56 pm, dashielljt wrote:
> 
>>You'd want to do more than one tar command of the form:
>>tar zcvf user1.tar.gz /home/user1/
>>tar zcvf user2.tar.gz /home/user2/
>>and so on.  You'd have to specify the path of user1.tar.gz like where it
>>was going to go and the same for the other archive files too.
> 
> 
> Home directories are on a seperate partition, what I want to back up is the 
> actual password/account list.
> 
> /etc/passwd seems to hold some of this, but it doesn't appear to show the 
> actual password hashes (unless cat is programmed to replace them all with a 
> 'x').

The 'x' indicates that you have passwords shadowed (they are held in a
seperate file readable only by root).

You can either unshadow the passwords while you do the backup
(man pwconv) or just backup the shadow file along with everything
else, which is probably less trouble.  You need to save these files:

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

Since the shadow files are readable only by root, you'll obviously
have to be logged in as root to do the backup.

-jdr-





-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

      reply	other threads:[~2002-12-02 15:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-01 11:02 A few questions Adam Luchjenbroers
2002-12-01 13:06 ` dashielljt
2002-12-02  6:56   ` Adam Luchjenbroers
2002-12-02 14:26     ` dashielljt
2002-12-02 14:53       ` Adam Luchjenbroers
2002-12-02 15:31         ` Jim Reimer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3DEB7CDA.7090809@wa5rrh.org \
    --to=jdr@wa5rrh.org \
    --cc=Adam@Luchjenbroers.com \
    --cc=linux-newbie@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox