From: Wols Lists <antlists@youngman.org.uk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] resizing and moving home directory to new partition on same drive
Date: Mon, 11 Jan 2021 11:30:50 +0000 [thread overview]
Message-ID: <5FFC36EA.4010508@youngman.org.uk> (raw)
In-Reply-To: <3529161f-2d6a-189a-cca1-c2d3ade8cafe@sys-concept.com>
On 11/01/21 04:06, thelma@sys-concept.com wrote:
> On 1/10/21 3:46 PM, antlists wrote:
>> And a little bit you might have missed - DON'T put root's home on a mounted disk - if it's currently in /home, move it to /. Don't forget to edit /etc/passwd if you have to move it.
>
> Can I use "nano" to edit /etc/password file
> all I need to change is the
> user:x:1000:1000::/home/user:/bin/bash
>
> to:
> user:x:1000:1000::/mnt/home/user:/bin/bash
>
> Or I need to use: "vipw -s"
>
No - if you follow my suggestion you don't need to change anything. Just
make sure, before you wipe your old install you know which user numbers
are used for "user" - here it's 1000, and "thelma" if you've got a user
called thelma.
What I was worried about was you might have a line
0:x:0:0::/home/root:/bin/bash
What THAT line should be is
0:x:0:0::/root:/bin/bash
but it probably already is. You seem to be confusing the root user and
yourself - you need to get that straight in your head because if you
don't you're likely to give yourself some nasty shocks.
Cheers,
Wol
prev parent reply other threads:[~2021-01-11 10:51 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-01-10 21:42 [gentoo-user] resizing and moving home directory to new partition on save drive thelma
2021-01-10 22:46 ` antlists
2021-01-11 0:31 ` thelma
2021-01-11 1:57 ` Wols Lists
2021-01-11 1:33 ` thelma
2021-01-11 13:51 ` Neil Bothwick
2021-01-11 4:06 ` [gentoo-user] resizing and moving home directory to new partition on same drive thelma
2021-01-11 4:26 ` Adam Carter
2021-01-11 5:13 ` thelma
2021-01-11 8:41 ` Adam Carter
2021-01-11 7:58 ` Raffaele BELARDI
2021-01-11 11:30 ` Wols Lists [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=5FFC36EA.4010508@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=gentoo-user@lists.gentoo.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