<div>On Thu, Aug 18, 2011 at 10:10 AM, Nicolas François <span dir="ltr"><<a href="mailto:nicolas.francois@centraliens.net">nicolas.francois@centraliens.net</a>></span> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
On Wed, Aug 17, 2011 at 07:37:47PM -0700, <a href="mailto:tb@becket.net">tb@becket.net</a> wrote:<br>
><br>
> /sbin/shadowconfig from the passwd package uses "pwck -p" and "grpck -p". On<br>
> some other systems, the -p flag to these programs says to silently fix<br>
> problems found in those files.<br>
<br>
<br>
Can you point me where "pwck -p" is called?<br></blockquote><div><br></div><div>In /sbin/shadowconfig, in both the shadowon() and shadowoff() functions; passwd package version 1:4.1.4.2+svn3283-2+squeeze1.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
> But the Debian versions do not actually do that. The Debian versions ignore<br>
> the -p option, and then go ahead and prompt for confirmation before making<br>
> changes.<br>
<br>
The -p option does not exist for pwck. It should not ignore it, but<br>
verbosely reject it.<br></blockquote><div><br>I agree. And the shadowconfig program shouldn't call it. It also doesn't exist for grpck.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Could you provide a /etc/group - /etc/gshadow configuration where grpck<br>
ignores the -p option and prompt for confirmation?</blockquote><div><br></div><div><div># echo mumblefoo:x:5000:mumblemumble >> /etc/group</div></div><div># grpck -p</div><div><div>group mumblefoo: no user mumblemumble</div>
<div>delete member 'mumblemumble'?</div></div><div><br></div><div>Thomas</div></div>