Gentoo Archives: gentoo-dev

From: Ian Stakenvicius <axs@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home
Date: Wed, 13 Jun 2012 17:22:17
Message-Id: 4FD8CC0C.3040000@gentoo.org
In Reply to: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home by "Michał Górny"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 13/06/12 01:19 PM, Michał Górny wrote:
> On Wed, 13 Jun 2012 12:00:16 -0400 Ian Stakenvicius > <axs@g.o> wrote: > >> + ### force updates of some user properties + >> usermod -d "${ehome}" "${euser}" || die + usermod >> -s "${eshell}" "${euser}" || die > > I think usermod can handle multiple arguments. >
It can, but I figured it would be easier to debug if something failed, if each modification was on the same line. Easy to modify it to be a one-liner, however (and iirc all but possibly dscl can do this in a single call) -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iF4EAREIAAYFAk/YzAsACgkQ2ugaI38ACPAz/AD8DI/5ZynrT/+0rDrgNGPM06l9 dUk/4JSiXKZuxxn7H4oBAL4eHwrPQXXrJWfYDY61QorFqhmVkl5oJdxS4is5WkQQ =YoDC -----END PGP SIGNATURE-----

Replies