[Pkg-shadow-devel] Bug#638263: Bug#638263: shadowconfig uses "pwck -p" and "grpck -p" which aren't actually supported

Thomas Bushnell, BSG tb at becket.net
Tue Sep 6 22:36:59 UTC 2011


On Thu, Aug 18, 2011 at 10:10 AM, Nicolas François <
nicolas.francois at centraliens.net> wrote:

> Hello,
>
> On Wed, Aug 17, 2011 at 07:37:47PM -0700, tb at becket.net wrote:
> >
> > /sbin/shadowconfig from the passwd package uses "pwck -p" and "grpck -p".
> On
> > some other systems, the -p flag to these programs says to silently fix
> > problems found in those files.
>
>
> Can you point me where "pwck -p" is called?
>

In /sbin/shadowconfig, in both the shadowon() and shadowoff() functions;
passwd package version 1:4.1.4.2+svn3283-2+squeeze1.


> > But the Debian versions do not actually do that. The Debian versions
> ignore
> > the -p option, and then go ahead and prompt for confirmation before
> making
> > changes.
>
> The -p option does not exist for pwck. It should not ignore it, but
> verbosely reject it.
>

I agree. And the shadowconfig program shouldn't call it. It also doesn't
exist for grpck.


> Could you provide a /etc/group - /etc/gshadow configuration where grpck
> ignores the -p option and prompt for confirmation?


# echo mumblefoo:x:5000:mumblemumble >> /etc/group
# grpck -p
group mumblefoo: no user mumblemumble
delete member 'mumblemumble'?

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-shadow-devel/attachments/20110906/fcc809b8/attachment.html>


More information about the Pkg-shadow-devel mailing list