From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3A6201382C5 for ; Mon, 11 Jan 2021 10:51:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 98EE7E0943; Mon, 11 Jan 2021 10:51:24 +0000 (UTC) Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 51C4EE093B for ; Mon, 11 Jan 2021 10:51:23 +0000 (UTC) Received: from host86-158-105-41.range86-158.btcentralplus.com ([86.158.105.41] helo=[192.168.1.64]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1kyun8-0005rs-6H for gentoo-user@lists.gentoo.org; Mon, 11 Jan 2021 10:51:19 +0000 Subject: Re: [gentoo-user] resizing and moving home directory to new partition on same drive To: gentoo-user@lists.gentoo.org References: <0de4c60d-1889-3bae-eab7-64cd8279952e@youngman.org.uk> <3529161f-2d6a-189a-cca1-c2d3ade8cafe@sys-concept.com> From: Wols Lists Message-ID: <5FFC36EA.4010508@youngman.org.uk> Date: Mon, 11 Jan 2021 11:30:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 In-Reply-To: <3529161f-2d6a-189a-cca1-c2d3ade8cafe@sys-concept.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: b51bc804-75f8-473e-9992-06f19ad1784b X-Archives-Hash: 53b8f7d8eba59205acfb05aba2cccce3 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