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 18:33:10
In Reply to: Re: [gentoo-dev] RFC: enewuser should force updates to shell and home by Fabian Groffen
Hash: SHA256

On 13/06/12 02:09 PM, Fabian Groffen wrote:
> On 13-06-2012 12:00:16 -0400, Ian Stakenvicius wrote: >> Hey all - I'd like to propose that enewuser forces updates to a >> user's home dir and shell whenever it is called, so that if this >> changes with new versions of an ebuild it is dealt with >> automatically rather than having to modify them in >> pkg_postinst/pkg_setup directly. > > What if some admin purposely changed home or shell for a system > account? Would be quite annoying if every update would reset that, > wouldn't it? > >
I considered this case, and that it might be more appropriate to duplicate 'enewuser' into a new call 'eforceuser' (or similar) which could be used instead of 'enewuser' in cases when the currently provided user settings should be forced. I decided against this as it seems also to make sense that users created by portage should be controlled by portage. I suppose probably the best means of handling this would be to somehow detect whether or not the current user settings are default and only apply the updates if they are; however a means of doing that (which would be transparent to the ebuild) is somewhat beyond my knowledge and abilities. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iF4EAREIAAYFAk/Y3LYACgkQ2ugaI38ACPCKKwEAsA2kiUEj2Cz5DyuKzlVUvqlq 9N7TH6cEUN7ahL6IIgoA/iiJRJ065vQguz5PmitWVugycdNhm/DCyGcL8j0abcgA =zd5h -----END PGP SIGNATURE-----