-----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 > <a...@gentoo.org> 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-----