public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Raffaele BELARDI <raffaele.belardi@st.com>
To: "gentoo-user@lists.gentoo.org" <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 07:58:36 +0000	[thread overview]
Message-ID: <DB8PR10MB3306E423AC0B8F6D187C0138F7AB0@DB8PR10MB3306.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <3529161f-2d6a-189a-cca1-c2d3ade8cafe@sys-concept.com>

> -----Original Message-----
> From: thelma@sys-concept.com <thelma@sys-concept.com>
> Sent: Monday, January 11, 2021 05:07
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] resizing and moving home directory to new
> partition on same drive
> 
> 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"

I've always used vi for those, but only because I did not know there was a dedicated command! Anyway, these look like wrappers that set a lock and then invoke your editor. I suppose that in a single user, single admin environment it does not make much difference using nano vs vipw. BTW I don't think you'd need -s with vipw, the shadow file only contains password-related info which you do not want to change.

raffaele

  parent reply	other threads:[~2021-01-11  7:58 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 [this message]
2021-01-11 11:30     ` Wols Lists

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=DB8PR10MB3306E423AC0B8F6D187C0138F7AB0@DB8PR10MB3306.EURPRD10.PROD.OUTLOOK.COM \
    --to=raffaele.belardi@st.com \
    --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