Bug 12098 - pwck should allow #comments in /etc/passwd
Summary: pwck should allow #comments in /etc/passwd
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: shadow-utils
Version: 6.2
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2000-06-11 21:03 UTC by Jean Berthomieu
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2000-06-15 21:10:24 UTC
Embargoed:


Attachments (Terms of Use)

Description Jean Berthomieu 2000-06-11 21:03:15 UTC
We are working in a university where main servers define lots of users in a
single /etc/passwd. Then they are shared to many NIS clients. 
We used to group them and to put some comment lines to explain which groups
were for what... Sometimes, we just comment some user out, in case it could
come back. 
Then we would like to use "pwck" to check that everything was right, but we
got lots of errors because of those comments.
We checked that /var/yp/Makefile did allow comments lines beginning with
"#" and empty lines in source files, as they were harmless in local
processing too. So, why "pwck" is so restrictive about them ?

Comment 1 Bernhard Rosenkraenzer 2000-06-15 21:10:24 UTC
The various standards don't allow for comments and empty lines
in password files, so pwck is correct in complaining about them.
Using comments in password files may or may not work with any other
operating systems or even with updates, so keeping this check in is
actually a good thing.

Comment 2 Jean Berthomieu 2000-06-16 09:12:15 UTC
"Tell us what you need, we'll tell you how to do without!" :-(

Maybe "other operating systems" don't allow comments in password file
(Windows?), but I thought we had to do with *RedHat Linux* which, AFAIK does
allow them. 

I could imagine that it would have been nice - in a next release, for an
enhancement - to provide some switch to allow them "a la RedHat". Maybe, I'll
get a better luck from Mandrake?


Note You need to log in before you can comment on or make changes to this bug.