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

Replies