On Mon, May 30, 2011 at 10:47:08AM +0200, Marc Haber wrote:
> On Sun, May 29, 2011 at 08:32:21PM +0100, Roger Leigh wrote:
> > Providing that we have consensus on a recommended strategy for
> > locking and unlocking accounts which can go into policy, I think all
> > we need are examples for how maintainer scripts are expected to
> > handle account creation and locking/unlocking.
>
> The would be rather easy. Account creation/unlocking would happen with
> an unwrapped call to adduser --system, account locking with a call to
> the appropriate back-end command, or we could add an lockuser command
> to the adduser package. I think, the latter would be preferable since
> we would then be able to add sugar to the locking process. A wishlist
> bug against adduser is in order.
And at the same time, we add a check to lintian suggesting lockuser if
deluser was detected in p{ost,re}rm. And while we're at it, a check for
a nested adduser call as described by Roger could be added, too.
Hauke
--
.''`. Jan Hauke Rahm <jhr@debian.org> www.jhr-online.de
: :' : Debian Developer www.debian.org
`. `'` Member of the Linux Foundation www.linux.com
`- Fellow of the Free Software Foundation Europe www.fsfe.org
Attachment:
signature.asc
Description: Digital signature