XPost: linux.debian.bugs.dist
To:
guillem@debian.org (Guillem Jover)
Copy:
jcristau@debian.org (Julien Cristau)
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6SdIGNm85ngt8aVu1Xrc0LkptOLR9T4TA
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Am 18.09.2017 um 02:18 schrieb Michael Biebl:
It's not as simple as that. You might still have running processes with
that uid in which case usermod complains and exists.
So to successfully run usermod you'd have to kill a processes running
under that uid.
Fwiw, I ran into this issue when an upstream of mine switched runtimedir
from /var/run to /run and my postinst so far has created a system user
with --home /var/run/foo which I now wanted to change to --home /run/foo.
As the package starts a (socket activated) daemon, this needs some
dedicated code to disable socket activation, then stop the daemon, then
change the home directory via usermod, then re-enable socket activation.
Or I just don't try to anticipate all possible corner cases and simply
use the new home directory only on new installations.
Not sure what's better.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
--6SdIGNm85ngt8aVu1Xrc0LkptOLR9T4TA--
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAlm/FDoACgkQauHfDWCP ItyHTg/8DXRuEUuor/r3i5ag06dp0rT2a85KZojrW23MYjW4l+H0MqFxDIz7S/5O 8tNm2Q8kHUccrYJ5BxVNU+L4d1Mw68slzkpYD/8VMUCGtF43IH1ZmH6OS72N9/ic yzE0RjicS5kycwDSn5gjRU83tH42qAd+TfLQskvddE7Y9Hnj8i40KIDUoR2Bsh1i 9TIKRprhM0yhh3YEQfZpu8w/EeWQb+iek7VoJC8+R/6XLX/kFsPP4jiy6RjYqite R+llYmrSFi0tycrSBWRPpeK1GKa5caGEsWm+URXQD06rTu+9Hs9AE3mXY/E4a7Kl gP3IQvYO1MDxbko+UWNdfDwgMjqsG0XhrC7jy8S+1PrtV64k5l7vJn/HNK42EjiE ml2A2w3a+eqSJHlDJTtLk/17FYN0mbrMqGObmJ3yruEJpNmxLt8WS7CjmK2qcAiu IueF7Qf2poAl550Gvu646KR76Mex72XYQaJenpDZcPQS44Zq3sTkDNG39ZVsq+AC 6cwV17n0XZVyChUIpc/4Rken9tVI9gAvCVdSAqPD2wOTRsKcHUzzY7vVIU4edAFQ mOYvNvtu4zSl14SLuKkwhs4El1A5QJ94pQab7cYphImVhmy/cQsFjl/Zmaf8QELZ M2vUzzkNvDu0w+QAbjjdNgC6BJZfJSoq5HxmUVHkOkD2Frvf9r0=
=IzMl
-----END PGP SIGNATURE-----
--- SoupGate-