Article View: comp.std.unix
Article #984Why getpwent but not putpwent?
From: std-unix
Date: Tue, 07 Apr 1987 04:28
Date: Tue, 07 Apr 1987 04:28
24 lines
1870 bytes
1870 bytes
There's been a bit of discussion on UNIX-WIZARDS as to why POSIX doesn't include mechanisms for modifying the password database. I.e., it does include getpwent() to get entries from the database (without specifying whether the database is kept in a file or not), but does not include putpwent() or anything like it. Basically, POSIX is intended to promote portability of application programs. System administration functions (including at least just about anything that requires super-user privileges) are almost by definition not ordinary application programs, and the methods needed to implement them will likely vary radically from underlying system to system, anyway. As another example, POSIX includes getgroups(), but not setgroups(). The Full Use Standard will have an appendix ``Rationale and Notes'' to explain things like this. If you have a favorite nit to pick, obscure section, omission, or ambiguity in the Trial Use standard, please submit it to this newsgroup (mail to std-unix@sally.utexas.edu) or, if you just want it considered for the Rationale, but not posted, send it to the moderator (mail to std-unix-request@sally.utexas.edu). Sally.utexas.edu is the same as ut-sally on UUCP mail network. Volume-Number: Volume 11, Number 3
Technical Details
Message-ID:
<7736@ut-sally.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!ut-sally!std-unixShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!husc6!ut-sally!std-unix From: std-unix@ut-sally.UUCP Newsgroups: comp.std.unix Subject: Why getpwent but not putpwent? Message-ID: <7736@ut-sally.UUCP> Date: Mon, 6-Apr-87 23:28:46 EST Article-I.D.: ut-sally.7736 Posted: Mon Apr 6 23:28:46 1987 Date-Received: Mon, 13-Apr-87 23:36:11 EST Reply-To: std-unix@sally.utexas.edu Lines: 24 Approved: jsq@sally.utexas.edu (Moderator, John Quarterman) Summary: POSIX supports application programs, not system administration